Skip to content
Snippets Groups Projects
Commit 6f2d816d authored by Hallvard Furuseth's avatar Hallvard Furuseth
Browse files

ITS#5035 - return ber_socket_t instead of ptrdiff_t from SLAP_EPOLL_EV_PTRFD().

Fixes a printf format bug.
parent c71a4ae4
Branches
Tags
No related merge requests found
......@@ -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)); \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment