mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-20 13:53:21 -05:00
ITS#5035 - return ber_socket_t instead of ptrdiff_t from SLAP_EPOLL_EV_PTRFD().
Fixes a printf format bug.
This commit is contained in:
parent
c71a4ae4f3
commit
6f2d816df4
1 changed files with 2 additions and 1 deletions
|
|
@ -227,7 +227,8 @@ static struct slap_daemon {
|
|||
(int *)(ptr) <= &slap_daemon.sd_index[dtblsize]) ? 0 : 1 )
|
||||
|
||||
# define SLAP_EPOLL_EV_PTRFD(ptr) (SLAP_EPOLL_EV_LISTENER(ptr) ? \
|
||||
((Listener *)ptr)->sl_sd : (int *)(ptr) - slap_daemon.sd_index)
|
||||
((Listener *)ptr)->sl_sd : \
|
||||
(ber_socket_t) ((int *)(ptr) - slap_daemon.sd_index))
|
||||
|
||||
# define SLAP_SOCK_DEL(s) do { \
|
||||
int fd, rc, index = SLAP_EPOLL_SOCK_IX((s)); \
|
||||
|
|
|
|||
Loading…
Reference in a new issue