aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2023-09-27 09:13:47 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2023-09-27 09:16:21 +0300
commit15575e29980a93f59f7d5fc9b1003a7639764f4e (patch)
treeb6af158dc976d3dba56c43add219d860d4d1dd3b /src/testcurl
parentdff7ab0d63a155a612a0e2ec569e6250ece0046c (diff)
downloadlibmicrohttpd-15575e29980a93f59f7d5fc9b1003a7639764f4e.tar.gz
libmicrohttpd-15575e29980a93f59f7d5fc9b1003a7639764f4e.zip
tests: fixed compiler warnings
Diffstat (limited to 'src/testcurl')
-rw-r--r--src/testcurl/test_large_put.c2
-rw-r--r--src/testcurl/test_put_header_fold.c8
-rw-r--r--src/testcurl/test_quiesce.c4
3 files changed, 8 insertions, 6 deletions
diff --git a/src/testcurl/test_large_put.c b/src/testcurl/test_large_put.c
index 55e64a2f..e478056b 100644
--- a/src/testcurl/test_large_put.c
+++ b/src/testcurl/test_large_put.c
@@ -741,7 +741,7 @@ testPutExternal (void)
741 if ((WSAEINVAL != WSAGetLastError ()) || 741 if ((WSAEINVAL != WSAGetLastError ()) ||
742 (0 != rs.fd_count) || (0 != ws.fd_count) || (0 != es.fd_count) ) 742 (0 != rs.fd_count) || (0 != ws.fd_count) || (0 != es.fd_count) )
743 externalErrorExitDesc ("Unexpected select() error"); 743 externalErrorExitDesc ("Unexpected select() error");
744 Sleep (tv.tv_sec * 1000 + tv.tv_usec / 1000); 744 Sleep ((DWORD) (tv.tv_sec * 1000 + tv.tv_usec / 1000));
745#endif 745#endif
746 } 746 }
747 747
diff --git a/src/testcurl/test_put_header_fold.c b/src/testcurl/test_put_header_fold.c
index 3a732952..14fa0d73 100644
--- a/src/testcurl/test_put_header_fold.c
+++ b/src/testcurl/test_put_header_fold.c
@@ -611,12 +611,14 @@ setupCURL (void *cbc, uint16_t port,
611#endif /* _DEBUG */ 611#endif /* _DEBUG */
612 (CURLE_OK != curl_easy_setopt (c, CURLOPT_DEBUGFUNCTION, 612 (CURLE_OK != curl_easy_setopt (c, CURLOPT_DEBUGFUNCTION,
613 &libcurl_debug_cb)) || 613 &libcurl_debug_cb)) ||
614#if CURL_AT_LEAST_VERSION (7, 19, 4)
615 (CURLE_OK != curl_easy_setopt (c, CURLOPT_PROTOCOLS, CURLPROTO_HTTP)) ||
616#endif /* CURL_AT_LEAST_VERSION (7, 19, 4) */
617#if CURL_AT_LEAST_VERSION (7, 45, 0) 614#if CURL_AT_LEAST_VERSION (7, 45, 0)
618 (CURLE_OK != curl_easy_setopt (c, CURLOPT_DEFAULT_PROTOCOL, "http")) || 615 (CURLE_OK != curl_easy_setopt (c, CURLOPT_DEFAULT_PROTOCOL, "http")) ||
619#endif /* CURL_AT_LEAST_VERSION (7, 45, 0) */ 616#endif /* CURL_AT_LEAST_VERSION (7, 45, 0) */
617#if CURL_AT_LEAST_VERSION (7, 85, 0)
618 (CURLE_OK != curl_easy_setopt (c, CURLOPT_PROTOCOLS_STR, "http")) ||
619#elif CURL_AT_LEAST_VERSION (7, 19, 4)
620 (CURLE_OK != curl_easy_setopt (c, CURLOPT_PROTOCOLS, CURLPROTO_HTTP)) ||
621#endif /* CURL_AT_LEAST_VERSION (7, 19, 4) */
620 (CURLE_OK != curl_easy_setopt (c, CURLOPT_URL, 622 (CURLE_OK != curl_easy_setopt (c, CURLOPT_URL,
621 URL_SCHEME_HOST_PATH)) || 623 URL_SCHEME_HOST_PATH)) ||
622 (CURLE_OK != curl_easy_setopt (c, CURLOPT_PORT, ((long) port)))) 624 (CURLE_OK != curl_easy_setopt (c, CURLOPT_PORT, ((long) port))))
diff --git a/src/testcurl/test_quiesce.c b/src/testcurl/test_quiesce.c
index 9ba6adaa..be7b43b7 100644
--- a/src/testcurl/test_quiesce.c
+++ b/src/testcurl/test_quiesce.c
@@ -347,7 +347,7 @@ ServeOneRequest (void *param)
347 if ((WSAEINVAL != WSAGetLastError ()) || 347 if ((WSAEINVAL != WSAGetLastError ()) ||
348 (0 != rs.fd_count) || (0 != ws.fd_count) || (0 != es.fd_count) ) 348 (0 != rs.fd_count) || (0 != ws.fd_count) || (0 != es.fd_count) )
349 externalErrorExitDesc ("Unexpected select() error"); 349 externalErrorExitDesc ("Unexpected select() error");
350 Sleep (tv.tv_sec * 1000 + tv.tv_usec / 1000); 350 Sleep ((DWORD) (tv.tv_sec * 1000 + tv.tv_usec / 1000));
351#endif 351#endif
352 } 352 }
353 MHD_run (d); 353 MHD_run (d);
@@ -614,7 +614,7 @@ testExternalGet (void)
614 if ((WSAEINVAL != WSAGetLastError ()) || 614 if ((WSAEINVAL != WSAGetLastError ()) ||
615 (0 != rs.fd_count) || (0 != ws.fd_count) || (0 != es.fd_count) ) 615 (0 != rs.fd_count) || (0 != ws.fd_count) || (0 != es.fd_count) )
616 externalErrorExitDesc ("Unexpected select() error"); 616 externalErrorExitDesc ("Unexpected select() error");
617 Sleep (tv.tv_sec * 1000 + tv.tv_usec / 1000); 617 Sleep ((DWORD) (tv.tv_sec * 1000 + tv.tv_usec / 1000));
618#endif 618#endif
619 } 619 }
620 curl_multi_perform (multi, &running); 620 curl_multi_perform (multi, &running);