aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/test_upgrade.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/microhttpd/test_upgrade.c')
-rw-r--r--src/microhttpd/test_upgrade.c12
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
187enum tls_tool use_tls_tool; 187static 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)
423static int 423static int
424wr_connect (struct wr_socket *s, 424wr_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 */
802static void 802static void
803recv_hdr (struct wr_socket *sock) 803recv_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 */
1157static void 1157_MHD_NORETURN static void
1158run_mhd_poll_loop (struct MHD_Daemon *daemon) 1158run_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 */
1230static void 1230static void
1231run_mhd_loop (struct MHD_Daemon *daemon, 1231run_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);