aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/mhd_sockets.c
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2021-10-06 11:23:34 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2021-10-06 11:30:42 +0300
commit1a1744060827d9af81f125dea36e5fa2492ffd46 (patch)
tree81908946a2a239cd6ae9088640aa5629e2ba8294 /src/microhttpd/mhd_sockets.c
parentcc2d26ef3d30f2695f09f9928edc1b92c387ca6c (diff)
downloadlibmicrohttpd-1a1744060827d9af81f125dea36e5fa2492ffd46.tar.gz
libmicrohttpd-1a1744060827d9af81f125dea36e5fa2492ffd46.zip
Muted sanitizer errors on W32 platform.
Actually MinGW headers need to be fixed.
Diffstat (limited to 'src/microhttpd/mhd_sockets.c')
-rw-r--r--src/microhttpd/mhd_sockets.c8
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 */