aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/connection.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/microhttpd/connection.c')
-rw-r--r--src/microhttpd/connection.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index 7c0ce674..bf3f4d00 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -146,9 +146,9 @@ socket_start_extra_buffering (struct MHD_Connection *connection)
146{ 146{
147 int res = MHD_NO; 147 int res = MHD_NO;
148#if defined(TCP_CORK) || defined(TCP_NOPUSH) 148#if defined(TCP_CORK) || defined(TCP_NOPUSH)
149 const _MHD_SOCKOPT_BOOL_TYPE on_val = 1; 149 const MHD_SCKT_OPT_BOOL_ on_val = 1;
150#if defined(TCP_NODELAY) 150#if defined(TCP_NODELAY)
151 const _MHD_SOCKOPT_BOOL_TYPE off_val = 0; 151 const MHD_SCKT_OPT_BOOL_ off_val = 0;
152#endif /* TCP_NODELAY */ 152#endif /* TCP_NODELAY */
153 if (!connection) 153 if (!connection)
154 return MHD_NO; 154 return MHD_NO;
@@ -191,9 +191,9 @@ socket_start_no_buffering_flush (struct MHD_Connection *connection)
191{ 191{
192#if defined(TCP_CORK) || defined(TCP_NOPUSH) 192#if defined(TCP_CORK) || defined(TCP_NOPUSH)
193 int res = MHD_YES; 193 int res = MHD_YES;
194 const _MHD_SOCKOPT_BOOL_TYPE off_val = 0; 194 const MHD_SCKT_OPT_BOOL_ off_val = 0;
195#if defined(TCP_NODELAY) 195#if defined(TCP_NODELAY)
196 const _MHD_SOCKOPT_BOOL_TYPE on_val = 1; 196 const MHD_SCKT_OPT_BOOL_ on_val = 1;
197#endif /* TCP_NODELAY */ 197#endif /* TCP_NODELAY */
198#if !defined(TCP_CORK) 198#if !defined(TCP_CORK)
199 const int dummy = 0; 199 const int dummy = 0;
@@ -237,9 +237,9 @@ socket_start_no_buffering (struct MHD_Connection *connection)
237{ 237{
238#if defined(TCP_NODELAY) 238#if defined(TCP_NODELAY)
239 int res = MHD_YES; 239 int res = MHD_YES;
240 const _MHD_SOCKOPT_BOOL_TYPE on_val = 1; 240 const MHD_SCKT_OPT_BOOL_ on_val = 1;
241#if defined(TCP_CORK) || defined(TCP_NOPUSH) 241#if defined(TCP_CORK) || defined(TCP_NOPUSH)
242 const _MHD_SOCKOPT_BOOL_TYPE off_val = 0; 242 const MHD_SCKT_OPT_BOOL_ off_val = 0;
243#endif /* TCP_CORK || TCP_NOPUSH */ 243#endif /* TCP_CORK || TCP_NOPUSH */
244 if (!connection) 244 if (!connection)
245 return MHD_NO; 245 return MHD_NO;
@@ -276,9 +276,9 @@ socket_start_normal_buffering (struct MHD_Connection *connection)
276{ 276{
277#if defined(TCP_NODELAY) 277#if defined(TCP_NODELAY)
278 int res = MHD_YES; 278 int res = MHD_YES;
279 const _MHD_SOCKOPT_BOOL_TYPE off_val = 0; 279 const MHD_SCKT_OPT_BOOL_ off_val = 0;
280#if defined(TCP_CORK) 280#if defined(TCP_CORK)
281 _MHD_SOCKOPT_BOOL_TYPE cork_val = 0; 281 MHD_SCKT_OPT_BOOL_ cork_val = 0;
282 socklen_t param_size = sizeof (cork_val); 282 socklen_t param_size = sizeof (cork_val);
283#endif /* TCP_CORK */ 283#endif /* TCP_CORK */
284 if (!connection) 284 if (!connection)