diff options
Diffstat (limited to 'src/microhttpd/test_upgrade.c')
-rw-r--r-- | src/microhttpd/test_upgrade.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/microhttpd/test_upgrade.c b/src/microhttpd/test_upgrade.c index 5c95a10c..5836db6b 100644 --- a/src/microhttpd/test_upgrade.c +++ b/src/microhttpd/test_upgrade.c | |||
@@ -184,7 +184,7 @@ enum tls_tool | |||
184 | TLS_LIB_GNUTLS | 184 | TLS_LIB_GNUTLS |
185 | }; | 185 | }; |
186 | 186 | ||
187 | enum tls_tool use_tls_tool; | 187 | static enum tls_tool use_tls_tool; |
188 | 188 | ||
189 | #if defined(HTTPS_SUPPORT) && defined(HAVE_FORK) && defined(HAVE_WAITPID) | 189 | #if defined(HTTPS_SUPPORT) && defined(HAVE_FORK) && defined(HAVE_WAITPID) |
190 | /** | 190 | /** |
@@ -423,9 +423,9 @@ wr_create_from_plain_sckt (MHD_socket plain_sk) | |||
423 | static int | 423 | static int |
424 | wr_connect (struct wr_socket *s, | 424 | wr_connect (struct wr_socket *s, |
425 | const struct sockaddr *addr, | 425 | const struct sockaddr *addr, |
426 | int length) | 426 | unsigned int length) |
427 | { | 427 | { |
428 | if (0 != connect (s->fd, addr, length)) | 428 | if (0 != connect (s->fd, addr, (socklen_t) length)) |
429 | { | 429 | { |
430 | testErrorLogDesc ("connect() failed"); | 430 | testErrorLogDesc ("connect() failed"); |
431 | return -1; | 431 | return -1; |
@@ -797,7 +797,7 @@ send_all (struct wr_socket *sock, | |||
797 | 797 | ||
798 | /** | 798 | /** |
799 | * Read character-by-character until we | 799 | * Read character-by-character until we |
800 | * get '\r\n\r\n'. | 800 | * get 'CRLNCRLN'. |
801 | */ | 801 | */ |
802 | static void | 802 | static void |
803 | recv_hdr (struct wr_socket *sock) | 803 | recv_hdr (struct wr_socket *sock) |
@@ -1154,7 +1154,7 @@ run_mhd_select_loop (struct MHD_Daemon *daemon) | |||
1154 | * | 1154 | * |
1155 | * @param daemon daemon to run it for | 1155 | * @param daemon daemon to run it for |
1156 | */ | 1156 | */ |
1157 | static void | 1157 | _MHD_NORETURN static void |
1158 | run_mhd_poll_loop (struct MHD_Daemon *daemon) | 1158 | run_mhd_poll_loop (struct MHD_Daemon *daemon) |
1159 | { | 1159 | { |
1160 | (void) daemon; /* Unused. Silent compiler warning. */ | 1160 | (void) daemon; /* Unused. Silent compiler warning. */ |
@@ -1229,7 +1229,7 @@ run_mhd_epoll_loop (struct MHD_Daemon *daemon) | |||
1229 | */ | 1229 | */ |
1230 | static void | 1230 | static void |
1231 | run_mhd_loop (struct MHD_Daemon *daemon, | 1231 | run_mhd_loop (struct MHD_Daemon *daemon, |
1232 | int flags) | 1232 | unsigned int flags) |
1233 | { | 1233 | { |
1234 | if (0 == (flags & (MHD_USE_POLL | MHD_USE_EPOLL))) | 1234 | if (0 == (flags & (MHD_USE_POLL | MHD_USE_EPOLL))) |
1235 | run_mhd_select_loop (daemon); | 1235 | run_mhd_select_loop (daemon); |