libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit eb622eb2cbae5d628bd489ff5aee8a657f1e4f31
parent 3894027826cbc6688428d8d54e2debe25b1d0661
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Sun, 26 May 2019 18:30:40 +0300

tests: fixed compiler warnings on W32

Diffstat:
Msrc/testcurl/test_get.c | 4+++-
Msrc/testcurl/test_put.c | 4+++-
2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/testcurl/test_get.c b/src/testcurl/test_get.c @@ -474,8 +474,10 @@ testExternalGet () } tv.tv_sec = 0; tv.tv_usec = 1000; +#ifdef MHD_POSIX_SOCKETS if (maxsock > maxposixs) maxposixs = maxsock; +#endif /* MHD_POSIX_SOCKETS */ if (-1 == select (maxposixs + 1, &rs, &ws, &es, &tv)) { #ifdef MHD_POSIX_SOCKETS @@ -483,7 +485,7 @@ testExternalGet () abort (); #else if (WSAEINVAL != WSAGetLastError() || 0 != rs.fd_count || 0 != ws.fd_count || 0 != es.fd_count) - abort (); + _exit (99); Sleep (1000); #endif } diff --git a/src/testcurl/test_put.c b/src/testcurl/test_put.c @@ -459,8 +459,10 @@ curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, &copyBuffer); MHD_stop_daemon (d); return 4096; } +#ifdef MHD_POSIX_SOCKETS if (maxsock > maxposixs) maxposixs = maxsock; +#endif /* MHD_POSIX_SOCKETS */ tv.tv_sec = 0; tv.tv_usec = 1000; if (-1 == select (maxposixs + 1, &rs, &ws, &es, &tv)) @@ -470,7 +472,7 @@ curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, &copyBuffer); abort (); #else if (WSAEINVAL != WSAGetLastError() || 0 != rs.fd_count || 0 != ws.fd_count || 0 != es.fd_count) - abort (); + _exit (99); Sleep (1000); #endif }