From: Kurt Zeilenga Date: Thu, 5 May 2005 20:39:58 +0000 (+0000) Subject: Wrap w in WAKE_LISTENER X-Git-Tag: OPENLDAP_AC_BP~729 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=43dba4fd454ce4266d366dfbd98fcbb611a5f02f;p=openldap Wrap w in WAKE_LISTENER --- diff --git a/servers/slapd/daemon.c b/servers/slapd/daemon.c index 4d08f3d129..aafb20d75b 100644 --- a/servers/slapd/daemon.c +++ b/servers/slapd/daemon.c @@ -84,8 +84,9 @@ static ber_socket_t wake_sds[2]; static int emfile; static int waking; -#define WAKE_LISTENER(w) \ -do { if (w && waking < 5) { waking++; tcp_write( wake_sds[1], "0", 1 ); } } while(0) +#define WAKE_LISTENER(w) do { \ + if ((w) && waking < 5) { waking++; tcp_write( wake_sds[1], "0", 1 ); } \ + } while(0) volatile sig_atomic_t slapd_shutdown = 0, slapd_gentle_shutdown = 0; volatile sig_atomic_t slapd_abrupt_shutdown = 0;