From: Howard Chu Date: Tue, 12 Jul 2005 14:19:57 +0000 (+0000) Subject: Fix SLAP_SOCK_IS_MUTE typo X-Git-Tag: OPENLDAP_AC_BP~413 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=08ec8ad06891b61fc9097947b99398a3ba78195d;p=openldap Fix SLAP_SOCK_IS_MUTE typo --- diff --git a/servers/slapd/daemon.c b/servers/slapd/daemon.c index 6abea22fc2..608e07e5f1 100644 --- a/servers/slapd/daemon.c +++ b/servers/slapd/daemon.c @@ -206,7 +206,7 @@ static struct slap_daemon { #define SLAP_EVENT_FD(i) SLAP_EV_PTRFD(revents[i].data.ptr) #define SLAP_SOCK_SET_MUTE(s) SLAP_SOCK_CLR_READ(s) #define SLAP_SOCK_CLR_MUTE(s) SLAP_SOCK_SET_READ(s) -#define SLAP_SOCK_IS_MUTE(s) !SLAP_SOCK_IS_READ(s) +#define SLAP_SOCK_IS_MUTE(s) (!SLAP_SOCK_IS_READ(s)) #define SLAP_SOCK_SET_INIT \ slap_daemon.sd_epolls = ch_malloc(sizeof(struct epoll_event) * dtblsize * 2); \ @@ -301,7 +301,7 @@ static struct slap_daemon { #define SLAP_SOCK_SET_MUTE(s) FD_CLR(s, &readfds) #define SLAP_SOCK_CLR_MUTE(s) FD_SET(s, &readfds) -#define SLAP_SOCK_IS_MUTE(s) FD_ISSET(s, &readfds) +#define SLAP_SOCK_IS_MUTE(s) (!FD_ISSET(s, &readfds)) #endif