diff options
Diffstat (limited to 'src/microhttpd/mhd_sockets.c')
-rw-r--r-- | src/microhttpd/mhd_sockets.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/microhttpd/mhd_sockets.c b/src/microhttpd/mhd_sockets.c index aae8a496..0d9826a4 100644 --- a/src/microhttpd/mhd_sockets.c +++ b/src/microhttpd/mhd_sockets.c | |||
@@ -294,7 +294,7 @@ MHD_W32_socket_pair_ (SOCKET sockets_pair[2], int non_blk) | |||
294 | } | 294 | } |
295 | 295 | ||
296 | if ( (0 != ioctlsocket (client_s, | 296 | if ( (0 != ioctlsocket (client_s, |
297 | FIONBIO, | 297 | (int) FIONBIO, |
298 | &on_val)) || | 298 | &on_val)) || |
299 | ( (0 != connect (client_s, | 299 | ( (0 != connect (client_s, |
300 | (struct sockaddr*) &listen_addr, | 300 | (struct sockaddr*) &listen_addr, |
@@ -329,10 +329,10 @@ MHD_W32_socket_pair_ (SOCKET sockets_pair[2], int non_blk) | |||
329 | client_addr.sin_addr.s_addr) && | 329 | client_addr.sin_addr.s_addr) && |
330 | ( (0 != non_blk) ? | 330 | ( (0 != non_blk) ? |
331 | (0 == ioctlsocket (server_s, | 331 | (0 == ioctlsocket (server_s, |
332 | FIONBIO, | 332 | (int) FIONBIO, |
333 | &on_val)) : | 333 | &on_val)) : |
334 | (0 == ioctlsocket (client_s, | 334 | (0 == ioctlsocket (client_s, |
335 | FIONBIO, | 335 | (int) FIONBIO, |
336 | &off_val)) ) ) | 336 | &off_val)) ) ) |
337 | { | 337 | { |
338 | closesocket (listen_s); | 338 | closesocket (listen_s); |
@@ -417,7 +417,7 @@ MHD_socket_nonblocking_ (MHD_socket sock) | |||
417 | unsigned long flags = 1; | 417 | unsigned long flags = 1; |
418 | 418 | ||
419 | if (0 != ioctlsocket (sock, | 419 | if (0 != ioctlsocket (sock, |
420 | FIONBIO, | 420 | (int) FIONBIO, |
421 | &flags)) | 421 | &flags)) |
422 | return 0; | 422 | return 0; |
423 | #endif /* MHD_WINSOCK_SOCKETS */ | 423 | #endif /* MHD_WINSOCK_SOCKETS */ |