mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-25 04:09:31 +03:00
tests: fixed compiler warnings on W32
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -459,8 +459,10 @@ curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer);
|
||||
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, ©Buffer);
|
||||
abort ();
|
||||
#else
|
||||
if (WSAEINVAL != WSAGetLastError() || 0 != rs.fd_count || 0 != ws.fd_count || 0 != es.fd_count)
|
||||
abort ();
|
||||
_exit (99);
|
||||
Sleep (1000);
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user