libmicrohttpd

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

commit b0288b7b2ae6304ff2e7117cf2a6e80d2988328e
parent fe971e29c0139970be5bc3e84c685e9c04073da6
Author: Christian Grothoff <christian@grothoff.org>
Date:   Fri,  9 Oct 2009 13:23:58 +0000

fix

Diffstat:
Msrc/daemon/daemon.c | 13++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/src/daemon/daemon.c b/src/daemon/daemon.c @@ -595,11 +595,10 @@ MHD_accept_connection (struct MHD_Daemon *daemon) if (s >= FD_SETSIZE) { #if HAVE_MESSAGES - if ((options & MHD_USE_DEBUG) != 0) - FPRINTF (stderr, - "Socket descriptor larger than FD_SETSIZE: %d > %d\n", - s, - FD_SETSIZE); + MHD_DLOG (daemon, + "Socket descriptor larger than FD_SETSIZE: %d > %d\n", + s, + FD_SETSIZE); #endif CLOSE (s); return MHD_NO; @@ -1082,7 +1081,7 @@ MHD_start_daemon_va (unsigned int options, if (0 != pthread_mutex_lock (&MHD_gnutls_init_mutex)) { #if HAVE_MESSAGES - MHD_DLOG (daemon, "Failed to aquire gnutls mutex\n"); + MHD_DLOG (retVal, "Failed to aquire gnutls mutex\n"); #endif abort(); } @@ -1090,7 +1089,7 @@ MHD_start_daemon_va (unsigned int options, if (0 != pthread_mutex_unlock (&MHD_gnutls_init_mutex)) { #if HAVE_MESSAGES - MHD_DLOG (daemon, "Failed to release gnutls mutex\n"); + MHD_DLOG (retVal, "Failed to release gnutls mutex\n"); #endif abort(); }