From: Luke Howard Date: Sat, 24 Dec 2005 07:16:35 +0000 (+0000) Subject: Fix compile error when LDAP_CONNECTIONLESS is defined X-Git-Tag: OPENLDAP_REL_ENG_2_4_BP~511 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3ba381a862b617be6a89558b0e3ea2c92d7928a5;p=openldap Fix compile error when LDAP_CONNECTIONLESS is defined --- diff --git a/servers/slapd/daemon.c b/servers/slapd/daemon.c index 99c2f7c579..c540918645 100644 --- a/servers/slapd/daemon.c +++ b/servers/slapd/daemon.c @@ -215,7 +215,7 @@ static struct slap_daemon { # define SLAP_EVENT_IS_READ(i) SLAP_CHK_EVENT((i), EPOLLIN) # define SLAP_EVENT_IS_WRITE(i) SLAP_CHK_EVENT((i), EPOLLOUT) # define SLAP_EVENT_IS_LISTENER(i) SLAP_EV_LISTENER(revents[(i)].data.ptr) -# define SLAP_EVENT_LISTENER(i) (revents[(i)].data.ptr) +# define SLAP_EVENT_LISTENER(i) ((Listener *)(revents[(i)].data.ptr)) # define SLAP_EVENT_FD(i) SLAP_EV_PTRFD(revents[(i)].data.ptr)