From 08ec8ad06891b61fc9097947b99398a3ba78195d Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Tue, 12 Jul 2005 14:19:57 +0000 Subject: [PATCH] Fix SLAP_SOCK_IS_MUTE typo --- servers/slapd/daemon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.5