diff options
Diffstat (limited to 'src/microhttpd/daemon.c')
-rw-r--r-- | src/microhttpd/daemon.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c index e5d40861..1e5716e3 100644 --- a/src/microhttpd/daemon.c +++ b/src/microhttpd/daemon.c | |||
@@ -3124,10 +3124,10 @@ MHD_add_connection (struct MHD_Daemon *daemon, | |||
3124 | _ ("Failed to set nonblocking mode on new client socket: %s\n"), | 3124 | _ ("Failed to set nonblocking mode on new client socket: %s\n"), |
3125 | MHD_socket_last_strerr_ ()); | 3125 | MHD_socket_last_strerr_ ()); |
3126 | #endif | 3126 | #endif |
3127 | sk_nonbl = 0; | 3127 | sk_nonbl = false; |
3128 | } | 3128 | } |
3129 | else | 3129 | else |
3130 | sk_nonbl = ! 0; | 3130 | sk_nonbl = true; |
3131 | 3131 | ||
3132 | if ( (0 != (daemon->options & MHD_USE_TURBO)) && | 3132 | if ( (0 != (daemon->options & MHD_USE_TURBO)) && |
3133 | (! MHD_socket_noninheritable_ (client_socket)) ) | 3133 | (! MHD_socket_noninheritable_ (client_socket)) ) |
@@ -3200,7 +3200,7 @@ MHD_accept_connection (struct MHD_Daemon *daemon) | |||
3200 | s = accept (fd, | 3200 | s = accept (fd, |
3201 | addr, | 3201 | addr, |
3202 | &addrlen); | 3202 | &addrlen); |
3203 | sk_nonbl = 0; | 3203 | sk_nonbl = false; |
3204 | #endif /* ! USE_ACCEPT4 */ | 3204 | #endif /* ! USE_ACCEPT4 */ |
3205 | if ( (MHD_INVALID_SOCKET == s) || | 3205 | if ( (MHD_INVALID_SOCKET == s) || |
3206 | (addrlen <= 0) ) | 3206 | (addrlen <= 0) ) |
@@ -3281,7 +3281,7 @@ MHD_accept_connection (struct MHD_Daemon *daemon) | |||
3281 | #endif | 3281 | #endif |
3282 | } | 3282 | } |
3283 | else | 3283 | else |
3284 | sk_nonbl = ! 0; | 3284 | sk_nonbl = true; |
3285 | #endif /* !USE_ACCEPT4 || !HAVE_SOCK_NONBLOCK */ | 3285 | #endif /* !USE_ACCEPT4 || !HAVE_SOCK_NONBLOCK */ |
3286 | #if ! defined(USE_ACCEPT4) || ! defined(SOCK_CLOEXEC) | 3286 | #if ! defined(USE_ACCEPT4) || ! defined(SOCK_CLOEXEC) |
3287 | if (! MHD_socket_noninheritable_ (s)) | 3287 | if (! MHD_socket_noninheritable_ (s)) |