diff options
author | ng0 <ng0@n0.is> | 2019-07-16 19:01:44 +0000 |
---|---|---|
committer | ng0 <ng0@n0.is> | 2019-07-16 19:01:44 +0000 |
commit | 2a08acaa218a1e887f60af3019db33f9ec68cbe2 (patch) | |
tree | 57d504590aeed485a588cbfa0bddfa618544e631 | |
parent | 8edc3b919cebc8291f1f22916e7d9e831672d313 (diff) | |
download | libmicrohttpd-2a08acaa218a1e887f60af3019db33f9ec68cbe2.tar.gz libmicrohttpd-2a08acaa218a1e887f60af3019db33f9ec68cbe2.zip |
mhd_send.c: variable declarations (style).
-rw-r--r-- | src/microhttpd/mhd_send.c | 14 |
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 | ||