diff options
Diffstat (limited to 'src/lib/mhd_sockets.c')
-rw-r--r-- | src/lib/mhd_sockets.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/mhd_sockets.c b/src/lib/mhd_sockets.c index 998bbfe9..decd2a07 100644 --- a/src/lib/mhd_sockets.c +++ b/src/lib/mhd_sockets.c | |||
@@ -37,7 +37,7 @@ | |||
37 | * @param err the WinSock error code. | 37 | * @param err the WinSock error code. |
38 | * @return pointer to string description of specified WinSock error. | 38 | * @return pointer to string description of specified WinSock error. |
39 | */ | 39 | */ |
40 | const char* | 40 | const char * |
41 | MHD_W32_strerror_winsock_ (int err) | 41 | MHD_W32_strerror_winsock_ (int err) |
42 | { | 42 | { |
43 | switch (err) | 43 | switch (err) |
@@ -277,12 +277,12 @@ MHD_W32_socket_pair_ (SOCKET sockets_pair[2], int non_blk) | |||
277 | listen_addr.sin_port = 0; /* same as htons(0) */ | 277 | listen_addr.sin_port = 0; /* same as htons(0) */ |
278 | listen_addr.sin_addr.s_addr = htonl (INADDR_LOOPBACK); | 278 | listen_addr.sin_addr.s_addr = htonl (INADDR_LOOPBACK); |
279 | if ( ((0 == bind (listen_s, | 279 | if ( ((0 == bind (listen_s, |
280 | (struct sockaddr*) &listen_addr, | 280 | (struct sockaddr *) &listen_addr, |
281 | c_addinlen)) && | 281 | c_addinlen)) && |
282 | (0 == listen (listen_s, | 282 | (0 == listen (listen_s, |
283 | 1) ) && | 283 | 1) ) && |
284 | (0 == getsockname (listen_s, | 284 | (0 == getsockname (listen_s, |
285 | (struct sockaddr*) &listen_addr, | 285 | (struct sockaddr *) &listen_addr, |
286 | &addr_len))) ) | 286 | &addr_len))) ) |
287 | { | 287 | { |
288 | SOCKET client_s = socket (AF_INET, | 288 | SOCKET client_s = socket (AF_INET, |
@@ -303,7 +303,7 @@ MHD_W32_socket_pair_ (SOCKET sockets_pair[2], int non_blk) | |||
303 | FIONBIO, | 303 | FIONBIO, |
304 | &on_val)) || | 304 | &on_val)) || |
305 | ( (0 != connect (client_s, | 305 | ( (0 != connect (client_s, |
306 | (struct sockaddr*) &listen_addr, | 306 | (struct sockaddr *) &listen_addr, |
307 | c_addinlen)) && | 307 | c_addinlen)) && |
308 | (WSAGetLastError () != WSAEWOULDBLOCK)) ) | 308 | (WSAGetLastError () != WSAEWOULDBLOCK)) ) |
309 | { | 309 | { |
@@ -315,7 +315,7 @@ MHD_W32_socket_pair_ (SOCKET sockets_pair[2], int non_blk) | |||
315 | 315 | ||
316 | addr_len = c_addinlen; | 316 | addr_len = c_addinlen; |
317 | server_s = accept (listen_s, | 317 | server_s = accept (listen_s, |
318 | (struct sockaddr*) &accepted_from_addr, | 318 | (struct sockaddr *) &accepted_from_addr, |
319 | &addr_len); | 319 | &addr_len); |
320 | if (INVALID_SOCKET == server_s) | 320 | if (INVALID_SOCKET == server_s) |
321 | { | 321 | { |
@@ -327,7 +327,7 @@ MHD_W32_socket_pair_ (SOCKET sockets_pair[2], int non_blk) | |||
327 | 327 | ||
328 | addr_len = c_addinlen; | 328 | addr_len = c_addinlen; |
329 | if ( (0 == getsockname (client_s, | 329 | if ( (0 == getsockname (client_s, |
330 | (struct sockaddr*) &client_addr, | 330 | (struct sockaddr *) &client_addr, |
331 | &addr_len)) && | 331 | &addr_len)) && |
332 | (accepted_from_addr.sin_family == client_addr.sin_family) && | 332 | (accepted_from_addr.sin_family == client_addr.sin_family) && |
333 | (accepted_from_addr.sin_port == client_addr.sin_port) && | 333 | (accepted_from_addr.sin_port == client_addr.sin_port) && |