From 43dba4fd454ce4266d366dfbd98fcbb611a5f02f Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Thu, 5 May 2005 20:39:58 +0000 Subject: [PATCH] Wrap w in WAKE_LISTENER --- servers/slapd/daemon.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; -- 2.39.5