s3:modules: s/event_add_fd/tevent_add_fd and s/EVENT_FD_/TEVENT_FD_
authorStefan Metzmacher <metze@samba.org>
Mon, 18 Feb 2013 09:53:02 +0000 (10:53 +0100)
committerMichael Adam <obnox@samba.org>
Tue, 19 Feb 2013 22:48:00 +0000 (23:48 +0100)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
source3/modules/vfs_aio_pthread.c
source3/modules/vfs_notify_fam.c
source3/modules/vfs_preopen.c

index 5642a89e2dc7e54a99954aa0bbcd375b77c729c1..f7756b946c9667e2d533d2f2315599fab9ada177 100644 (file)
@@ -162,7 +162,7 @@ static void aio_open_handle_completion(struct tevent_context *event_ctx,
        DEBUG(10, ("aio_open_handle_completion called with flags=%d\n",
                (int)flags));
 
-       if ((flags & EVENT_FD_READ) == 0) {
+       if ((flags & TEVENT_FD_READ) == 0) {
                return;
        }
 
index f10a4c9c94376593f496b4a8f3cb4ff0a7322cbe..54df0e4f243a0d50d13aeb26978ba10d04ed8b4a 100644 (file)
@@ -113,9 +113,9 @@ static NTSTATUS fam_open_connection(FAMConnection *fam_conn,
                return NT_STATUS_UNEXPECTED_IO_ERROR;
        }
 
-       if (event_add_fd(event_ctx, event_ctx,
+       if (tevent_add_fd(event_ctx, event_ctx,
                         FAMCONNECTION_GETFD(fam_conn),
-                        EVENT_FD_READ, fam_handler,
+                        TEVENT_FD_READ, fam_handler,
                         (void *)fam_conn) == NULL) {
                DEBUG(0, ("event_add_fd failed\n"));
                FAMClose(fam_conn);
index 175298685ac82373915d8b70cca8691eca702965..612b0252e220e5aa097fdf27d6c7c6e0ea751784 100644 (file)
@@ -115,7 +115,7 @@ static void preopen_helper_readable(struct tevent_context *ev,
        ssize_t nread;
        char c;
 
-       if ((flags & EVENT_FD_READ) == 0) {
+       if ((flags & TEVENT_FD_READ) == 0) {
                return;
        }
 
@@ -237,8 +237,8 @@ static NTSTATUS preopen_init_helper(struct preopen_helper *h)
        }
        close(fdpair[1]);
        h->fd = fdpair[0];
-       h->fde = event_add_fd(server_event_context(), h->state, h->fd,
-                             EVENT_FD_READ, preopen_helper_readable, h);
+       h->fde = tevent_add_fd(server_event_context(), h->state, h->fd,
+                             TEVENT_FD_READ, preopen_helper_readable, h);
        if (h->fde == NULL) {
                close(h->fd);
                h->fd = -1;