aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/mhd_send.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/microhttpd/mhd_send.c')
-rw-r--r--src/microhttpd/mhd_send.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/microhttpd/mhd_send.c b/src/microhttpd/mhd_send.c
index de228676..c6218870 100644
--- a/src/microhttpd/mhd_send.c
+++ b/src/microhttpd/mhd_send.c
@@ -78,10 +78,14 @@ MHD_send_on_connection_ (struct MHD_Connection *connection,
78 //size_t length, opt1, opt2; 78 //size_t length, opt1, opt2;
79 // ssize_t num_bytes; 79 // ssize_t num_bytes;
80 //int errno = 0; 80 //int errno = 0;
81 bool want_cork, have_cork, have_more; 81 bool want_cork;
82 bool have_cork;
83 bool have_more;
82 /* The socket. */ 84 /* The socket. */
83 MHD_socket s = connection->socket_fd; 85 MHD_socket s = connection->socket_fd;
84 int eno, ret, optval; 86 int eno;
87 int ret;
88 int optval;
85 const MHD_SCKT_OPT_BOOL_ off_val = 0; 89 const MHD_SCKT_OPT_BOOL_ off_val = 0;
86 const MHD_SCKT_OPT_BOOL_ on_val = 1; 90 const MHD_SCKT_OPT_BOOL_ on_val = 1;
87 const int err = MHD_socket_get_error_ (); 91 const int err = MHD_socket_get_error_ ();
@@ -311,8 +315,10 @@ MHD_send_on_connection2_ (struct MHD_Connection *connection,
311{ 315{
312#if HAVE_WRITEV 316#if HAVE_WRITEV
313 MHD_socket s = connection->socket_fd; 317 MHD_socket s = connection->socket_fd;
314 bool have_cork, have_more; 318 bool have_cork;
315 int iovcnt, eno; 319 bool have_more;
320 int iovcnt;
321 int eno;
316 const MHD_SCKT_OPT_BOOL_ off_val = 0; 322 const MHD_SCKT_OPT_BOOL_ off_val = 0;
317 struct iovec vector[2]; 323 struct iovec vector[2];
318 324