[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [libmicrohttpd] 107/154: test for MGS_MORE existing, not it
From: |
gnunet |
Subject: |
[GNUnet-SVN] [libmicrohttpd] 107/154: test for MGS_MORE existing, not its non-existince. |
Date: |
Mon, 19 Aug 2019 10:16:59 +0200 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to branch master
in repository libmicrohttpd.
commit 43ee3a30379f9d2db9f9b3331ca5f825a5aab2af
Author: ng0 <address@hidden>
AuthorDate: Mon Jul 29 15:15:33 2019 +0000
test for MGS_MORE existing, not its non-existince.
---
src/microhttpd/mhd_send.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/microhttpd/mhd_send.c b/src/microhttpd/mhd_send.c
index 442a5373..412a296c 100644
--- a/src/microhttpd/mhd_send.c
+++ b/src/microhttpd/mhd_send.c
@@ -46,7 +46,8 @@ static void
pre_cork_setsockopt (struct MHD_Connection *connection,
bool want_cork)
{
-#ifndef MSG_MORE
+#if MSG_MORE
+#else
int ret;
const MHD_SCKT_OPT_BOOL_ off_val = 0;
const MHD_SCKT_OPT_BOOL_ on_val = 1;
@@ -98,7 +99,8 @@ static void
post_cork_setsockopt (struct MHD_Connection *connection,
bool want_cork)
{
-#ifndef MSG_MORE
+#if MSG_MORE
+#else
int ret;
const MHD_SCKT_OPT_BOOL_ off_val = 0;
const MHD_SCKT_OPT_BOOL_ on_val = 1;
@@ -131,7 +133,7 @@ post_cork_setsockopt (struct MHD_Connection *connection,
connection->sk_cork_on = want_cork;
}
return;
-#endif /* HAVE_MORE */
+#endif /* MSG_MORE */
}
/**
--
To stop receiving notification emails like this one, please contact
address@hidden.
- [GNUnet-SVN] [libmicrohttpd] 77/154: fix, (continued)
- [GNUnet-SVN] [libmicrohttpd] 77/154: fix, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 78/154: buffersize, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 90/154: show not tell, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 81/154: Merge branch 'dev/ng0/gsoc2019' of git+ssh://gnunet.org/libmicrohttpd into dev/ng0/gsoc2019, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 83/154: post_cork function first draft, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 63/154: attempt fix., gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 80/154: fix regression introduced in cc5032b85, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 92/154: simplify, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 103/154: test, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 93/154: simplify, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 107/154: test for MGS_MORE existing, not its non-existince.,
gnunet <=
- [GNUnet-SVN] [libmicrohttpd] 76/154: indent, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 101/154: don't cast, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 87/154: remove code, add prototype to mhd_send.h, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 117/154: ., gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 125/154: Merge remote-tracking branch 'origin/master' into dev/ng0/gsoc2019, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 129/154: swap _NODELAY and _NOPUSH, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 118/154: Add MSG_MORE detection., gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 123/154: fix behavior on NetBSD, use the right sizeof., gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 106/154: switch post/pre function definition to a logical appearance in the file (pre before post), purely for orientation., gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 110/154: check before post_ function if we need to set want_cork to false, gnunet, 2019/08/19