[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [libmicrohttpd] 03/154: mhd_send: fix switch.
From: |
gnunet |
Subject: |
[GNUnet-SVN] [libmicrohttpd] 03/154: mhd_send: fix switch. |
Date: |
Mon, 19 Aug 2019 10:15:15 +0200 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to branch master
in repository libmicrohttpd.
commit 5181cf5a6ec2af8cb4e98ebcea7d492149604509
Author: ng0 <address@hidden>
AuthorDate: Mon Jun 17 16:49:50 2019 +0000
mhd_send: fix switch.
---
src/microhttpd/mhd_send.c | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/src/microhttpd/mhd_send.c b/src/microhttpd/mhd_send.c
index 2770c921..b3d29942 100644
--- a/src/microhttpd/mhd_send.c
+++ b/src/microhttpd/mhd_send.c
@@ -97,7 +97,7 @@ MHD_send_on_connection_ (struct MHD_Connection *connection,
switch (MHD_SendSocketOptions)
{
/* No corking */
- case 0:
+ case MHD_SSO_NO_CORK:
if (! connection->sk_tcp_nodelay_on)
{
opt1 = 1;
@@ -122,7 +122,7 @@ MHD_send_on_connection_ (struct MHD_Connection *connection,
}
}
/* Do corking, do MSG_MORE instead if available */
- case 1:
+ case MHD_SSO_MAY_CORK:
#if defined(TCP_CORK) && ! defined(MSG_MORE)
/*
* We have TCP_CORK and we don't have MSG_MORE.
@@ -184,7 +184,7 @@ MHD_send_on_connection_ (struct MHD_Connection *connection,
}
#endif
/* Cork the header */
- case 2:
+ case MHD_SSO_HDR_CORK:
if (something_with_snd_mss > (sizeof (buffer - 10)))
{ // magic guessing?
if ((! 100_Continue) && (sending_header))
@@ -209,7 +209,7 @@ MHD_send_on_connection_ (struct MHD_Connection *connection,
}
}
}
-if (1 == MHD_SendSocketOptions)
+if (MHD_SendSocketOptionsi == 1)
{
#ifdef MSG_MORE
num_bytes = send (s, buffer, buffer_size, MSG_MORE);
@@ -313,12 +313,12 @@ MHD_send_on_connection2_ (struct MHD_Connection
*connection,
size_t opt1, opt2, length;
switch (MHD_SendSocketOptions)
{
- case 0:
+ case MHD_SSO_NO_CORK:
/* No corking */
- case 1:
- case 2:
+ case MHD_SSO_MAY_CORK:
+ case MHD_SSO_HDR_CORK:
}
-if (1 == MHD_SendSocketOptions)
+if (MHD_SendSocketOptions == 1)
{
// bla
}
--
To stop receiving notification emails like this one, please contact
address@hidden.
- [GNUnet-SVN] [libmicrohttpd] branch master updated (316f6ab3 -> e82de750), gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 01/154: mhd_send: Add initial version., gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 04/154: mhd_send: minor typo, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 02/154: mhd_send, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 03/154: mhd_send: fix switch.,
gnunet <=
- [GNUnet-SVN] [libmicrohttpd] 05/154: mhd_send: remove unnecessary comments., gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 08/154: fix syntax, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 06/154: mhd_send: Move return_bytes related code into the right place., gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 07/154: provide example for use of getsockopt to get MSS, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 09/154: startingpoint, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 14/154: mhd_send.c: Try to guess the right branch to close., gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 17/154: mhd_send: start adding logic from send_param_adapter., gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 12/154: Add mhd_send to Makefile, more fixes in mhd_send., gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 20/154: mhd_send.c: variable declarations (style)., gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 19/154: adjust, gnunet, 2019/08/19