[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [libmicrohttpd] 89/154: attempt fix
From: |
gnunet |
Subject: |
[GNUnet-SVN] [libmicrohttpd] 89/154: attempt fix |
Date: |
Mon, 19 Aug 2019 10:16:41 +0200 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to branch master
in repository libmicrohttpd.
commit 78d30bd5827eeaffdfb5906a4afedb48868aceac
Author: ng0 <address@hidden>
AuthorDate: Thu Jul 25 17:51:43 2019 +0000
attempt fix
---
src/microhttpd/mhd_send.c | 26 +-------------------------
src/microhttpd/mhd_send.h | 2 --
2 files changed, 1 insertion(+), 27 deletions(-)
diff --git a/src/microhttpd/mhd_send.c b/src/microhttpd/mhd_send.c
index 354b9349..284def22 100644
--- a/src/microhttpd/mhd_send.c
+++ b/src/microhttpd/mhd_send.c
@@ -678,31 +678,7 @@ static int freebsd_sendfile_flags_;
*/
static int freebsd_sendfile_flags_thd_p_c_;
#endif /* SF_FLAGS */
-/**
- * Initialises static variables
- */
-void
-MHD_conn_init_static_ (void)
-{
-/* FreeBSD 11 and later allow to specify read-ahead size
- * and handles SF_NODISKIO differently.
- * SF_FLAGS defined only on FreeBSD 11 and later. */
-#ifdef SF_FLAGS
- long sys_page_size = sysconf (_SC_PAGESIZE);
- if (0 > sys_page_size)
- { /* Failed to get page size. */
- freebsd_sendfile_flags_ = SF_NODISKIO;
- freebsd_sendfile_flags_thd_p_c_ = SF_NODISKIO;
- }
- else
- {
- freebsd_sendfile_flags_ =
- SF_FLAGS((uint16_t)(MHD_SENFILE_CHUNK_ / sys_page_size),
SF_NODISKIO);
- freebsd_sendfile_flags_thd_p_c_ =
- SF_FLAGS((uint16_t)(MHD_SENFILE_CHUNK_THR_P_C_ / sys_page_size),
SF_NODISKIO);
- }
-#endif /* SF_FLAGS */
-}
+
#endif /* HAVE_FREEBSD_SENDFILE */
#if defined(_MHD_HAVE_SENDFILE)
diff --git a/src/microhttpd/mhd_send.h b/src/microhttpd/mhd_send.h
index 4974adcd..e94ed509 100644
--- a/src/microhttpd/mhd_send.h
+++ b/src/microhttpd/mhd_send.h
@@ -119,6 +119,4 @@ ssize_t
sendfile_adapter (struct MHD_Connection *connection);
#endif
-void
-MHD_conn_init_static_ (void);
#endif /* MHD_SEND_H */
--
To stop receiving notification emails like this one, please contact
address@hidden.
- [GNUnet-SVN] [libmicrohttpd] 142/154: Add draft of Changelog., (continued)
- [GNUnet-SVN] [libmicrohttpd] 142/154: Add draft of Changelog., gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 150/154: mhd_send.c: log EINVAL, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 148/154: Merge remote-tracking branch 'origin/master' into dev/ng0/gsoc2019, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 88/154: attempt fix, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 71/154: lisp sneeks in., gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 75/154: switch functions., gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 95/154: simplify, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 68/154: Add MHD_send_socket_state_cork_nodelay_ and use it., gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 65/154: remove old function name., gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 94/154: simplify, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 89/154: attempt fix,
gnunet <=
- [GNUnet-SVN] [libmicrohttpd] 97/154: simplify, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 108/154: have_cork->want_cork, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 91/154: show not tell, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 102/154: for tests, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 86/154: initial move code sendfile., gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 100/154: incomplete, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 111/154: synt, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 105/154: remove commented code, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 99/154: remove dead code, comment new code., gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 109/154: declare ret, gnunet, 2019/08/19