s3:smbd: 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:01 +0000 (23:48 +0100)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
source3/smbd/notify_inotify.c
source3/smbd/oplock_irix.c
source3/smbd/process.c

index c1543965a7d19da2446bcbdc236d2d873b34fc8a..4e9a87e6f9fbaa2cfbe031797dd9d8ca1804d29d 100644 (file)
@@ -269,7 +269,7 @@ static NTSTATUS inotify_setup(struct sys_notify_context *ctx)
        talloc_set_destructor(in, inotify_destructor);
 
        /* add a event waiting for the inotify fd to be readable */
-       event_add_fd(ctx->ev, in, in->fd, EVENT_FD_READ, inotify_handler, in);
+       tevent_add_fd(ctx->ev, in, in->fd, TEVENT_FD_READ, inotify_handler, in);
 
        return NT_STATUS_OK;
 }
index 635f8320bf6ae31120c6e0168966947b37561d4b..694ca086e38e59d4654464c98608212350babc19 100644 (file)
@@ -334,10 +334,10 @@ struct kernel_oplocks *irix_init_kernel_oplocks(struct smbd_server_connection *s
        ctx->read_fd = pfd[0];
        ctx->write_fd = pfd[1];
 
-       ctx->read_fde = event_add_fd(sconn->ev_ctx,
+       ctx->read_fde = tevent_add_fd(sconn->ev_ctx,
                                     ctx,
                                     ctx->read_fd,
-                                    EVENT_FD_READ,
+                                    TEVENT_FD_READ,
                                     irix_oplocks_read_fde_handler,
                                     ctx);
        return _ctx;
index 2081a347ba829d9aabb9bdb3d20f000a67a29208..0a8e62c85a715d668cfebd1feca84a014797f3c4 100644 (file)
@@ -3594,10 +3594,10 @@ void smbd_process(struct tevent_context *ev_ctx,
                exit_server("init_dptrs() failed");
        }
 
-       sconn->smb1.fde = event_add_fd(ev_ctx,
+       sconn->smb1.fde = tevent_add_fd(ev_ctx,
                                                  sconn,
                                                  sconn->sock,
-                                                 EVENT_FD_READ,
+                                                 TEVENT_FD_READ,
                                                  smbd_server_connection_handler,
                                                  sconn);
        if (!sconn->smb1.fde) {