diff options
author | Stefan Metzmacher <metze@samba.org> | 2009-01-02 16:25:29 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2009-01-02 18:16:53 +0100 |
commit | 784b2dc8d02c4e5c1ae31314f08874fa57416c40 (patch) | |
tree | 907a30cd0aa29e33feffcfc24e47d6df208bf99e /lib/tevent/tevent_select.c | |
parent | 4f04b06ac2cfceddaabcbf661f9878ff69a6f01b (diff) | |
download | samba-784b2dc8d02c4e5c1ae31314f08874fa57416c40.tar.gz samba-784b2dc8d02c4e5c1ae31314f08874fa57416c40.tar.bz2 samba-784b2dc8d02c4e5c1ae31314f08874fa57416c40.zip |
tevent: use TEVENT_FD_* instead of EVENT_FD_*
metze
Diffstat (limited to 'lib/tevent/tevent_select.c')
-rw-r--r-- | lib/tevent/tevent_select.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/tevent/tevent_select.c b/lib/tevent/tevent_select.c index 06bc1aa0c9..e21b3c44b9 100644 --- a/lib/tevent/tevent_select.c +++ b/lib/tevent/tevent_select.c @@ -103,7 +103,7 @@ static int select_event_fd_destructor(struct tevent_fd *fde) DLIST_REMOVE(select_ev->fd_events, fde); select_ev->destruction_count++; - if (fde->flags & EVENT_FD_AUTOCLOSE) { + if (fde->flags & TEVENT_FD_AUTOCLOSE) { close(fde->fd); fde->fd = -1; } @@ -193,10 +193,10 @@ static int select_event_loop_select(struct select_event_context *select_ev, stru /* setup any fd events */ for (fde = select_ev->fd_events; fde; fde = fde->next) { - if (fde->flags & EVENT_FD_READ) { + if (fde->flags & TEVENT_FD_READ) { FD_SET(fde->fd, &r_fds); } - if (fde->flags & EVENT_FD_WRITE) { + if (fde->flags & TEVENT_FD_WRITE) { FD_SET(fde->fd, &w_fds); } } @@ -239,8 +239,8 @@ static int select_event_loop_select(struct select_event_context *select_ev, stru for (fde = select_ev->fd_events; fde; fde = fde->next) { uint16_t flags = 0; - if (FD_ISSET(fde->fd, &r_fds)) flags |= EVENT_FD_READ; - if (FD_ISSET(fde->fd, &w_fds)) flags |= EVENT_FD_WRITE; + if (FD_ISSET(fde->fd, &r_fds)) flags |= TEVENT_FD_READ; + if (FD_ISSET(fde->fd, &w_fds)) flags |= TEVENT_FD_WRITE; if (flags) { fde->handler(select_ev->ev, fde, flags, fde->private_data); if (destruction_count != select_ev->destruction_count) { |