s3:lib/events: s/EVENT_FD/TEVENT_FD
authorStefan Metzmacher <metze@samba.org>
Mon, 18 Feb 2013 09:16:48 +0000 (10:16 +0100)
committerMichael Adam <obnox@samba.org>
Tue, 19 Feb 2013 22:47:55 +0000 (23:47 +0100)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
source3/lib/events.c

index cafe598ca0940ce6c6089b41deb4c13fd15e41bd..011fcdc2e16cc96a333e1fc1963e314f2d02b2d0 100644 (file)
@@ -258,23 +258,23 @@ bool run_events_poll(struct tevent_context *ev, int pollrtn,
                }
 
                if (pfd->revents & (POLLHUP|POLLERR)) {
-                       /* If we only wait for EVENT_FD_WRITE, we
+                       /* If we only wait for TEVENT_FD_WRITE, we
                           should not tell the event handler about it,
                           and remove the writable flag, as we only
                           report errors when waiting for read events
                           to match the select behavior. */
-                       if (!(fde->flags & EVENT_FD_READ)) {
-                               EVENT_FD_NOT_WRITEABLE(fde);
+                       if (!(fde->flags & TEVENT_FD_READ)) {
+                               TEVENT_FD_NOT_WRITEABLE(fde);
                                continue;
                        }
-                       flags |= EVENT_FD_READ;
+                       flags |= TEVENT_FD_READ;
                }
 
                if (pfd->revents & POLLIN) {
-                       flags |= EVENT_FD_READ;
+                       flags |= TEVENT_FD_READ;
                }
                if (pfd->revents & POLLOUT) {
-                       flags |= EVENT_FD_WRITE;
+                       flags |= TEVENT_FD_WRITE;
                }
                if (flags & fde->flags) {
                        DLIST_DEMOTE(ev->fd_events, fde, struct tevent_fd);