libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 3c83fa13f08d6e0b254288e40a75e27c8065f439
parent 860aa4e0ed63d3f1dc706bf669b9592fc4aef778
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Wed, 27 Apr 2022 17:30:28 +0300

daemon: added workaround for 'uncrustify' broken formatting

Diffstat:
Msrc/microhttpd/daemon.c | 23++++++++++++-----------
1 file changed, 12 insertions(+), 11 deletions(-)

diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c @@ -4390,7 +4390,13 @@ MHD_select (struct MHD_Daemon *daemon, &maxsock, FD_SETSIZE)) ) { -#if defined(MHD_WINSOCK_SOCKETS) +#if ! defined(MHD_WINSOCK_SOCKETS) +#ifdef HAVE_MESSAGES + MHD_DLOG (daemon, _ ("Could not add control inter-thread " \ + "communication channel FD to fdset.\n")); +#endif + err_state = MHD_YES; +#else /* MHD_WINSOCK_SOCKETS */ /* fdset limit reached, new connections cannot be handled. Remove listen socket FD from fdset and retry to add ITC FD. */ @@ -4404,18 +4410,13 @@ MHD_select (struct MHD_Daemon *daemon, &maxsock, FD_SETSIZE)) { -#endif /* MHD_WINSOCK_SOCKETS */ #ifdef HAVE_MESSAGES - MHD_DLOG (daemon, - _ ( - "Could not add control inter-thread communication channel FD to fdset.\n")); + MHD_DLOG (daemon, _ ("Could not add control inter-thread " \ + "communication channel FD to fdset.\n")); #endif - err_state = MHD_YES; -#if defined(MHD_WINSOCK_SOCKETS) - } -} - - + err_state = MHD_YES; + } + } #endif /* MHD_WINSOCK_SOCKETS */ } /* Stop listening if we are at the configured connection limit */