diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-02-05 17:27:39 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-02-05 17:27:39 +0000 |
commit | 868e81cb3d2c98d2116e65da44858d1d0d009759 (patch) | |
tree | df1349af39d9ae919671016cb5e8a94d7880e12a | |
parent | b1625cb1af90563817ffa9f3fcea6f6c9f8a4a7b (diff) |
bracket correctly
-rw-r--r-- | src/microhttpd/daemon.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c index dadf70c3..bbd7b42d 100644 --- a/src/microhttpd/daemon.c +++ b/src/microhttpd/daemon.c @@ -3765,7 +3765,9 @@ MHD_start_daemon_va (unsigned int flags, #endif if (0 == (flags & (MHD_USE_SELECT_INTERNALLY | MHD_USE_THREAD_PER_CONNECTION))) use_pipe = 0; /* useless if we are using 'external' select */ - if ( (use_pipe) && (0 != MHD_pipe_ (daemon->wpipe)) ) + if (use_pipe) + { + if (0 != MHD_pipe_ (daemon->wpipe)) { #ifdef HAVE_MESSAGES MHD_DLOG (daemon, @@ -3775,8 +3777,9 @@ MHD_start_daemon_va (unsigned int flags, free (daemon); return NULL; } - make_nonblocking (daemon, daemon->wpipe[0]); - make_nonblocking (daemon, daemon->wpipe[1]); + make_nonblocking (daemon, daemon->wpipe[0]); + make_nonblocking (daemon, daemon->wpipe[1]); + } #ifndef MHD_WINSOCK_SOCKETS if ( (0 == (flags & (MHD_USE_POLL | MHD_USE_EPOLL_LINUX_ONLY))) && (1 == use_pipe) && |