summaryrefslogtreecommitdiff
path: root/source3/modules
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2013-02-18 10:53:02 +0100
committerMichael Adam <obnox@samba.org>2013-02-19 23:48:00 +0100
commit64145e7958204f2b2c444e8e904b533dd2108290 (patch)
treeba65ed4e4046de8baf12618e61fe68a547061af6 /source3/modules
parentc0858030ba25d23b06a9dcf90b303f9325b7ac3e (diff)
downloadsamba-64145e7958204f2b2c444e8e904b533dd2108290.tar.gz
samba-64145e7958204f2b2c444e8e904b533dd2108290.tar.bz2
samba-64145e7958204f2b2c444e8e904b533dd2108290.zip
s3:modules: s/event_add_fd/tevent_add_fd and s/EVENT_FD_/TEVENT_FD_
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source3/modules')
-rw-r--r--source3/modules/vfs_aio_pthread.c2
-rw-r--r--source3/modules/vfs_notify_fam.c4
-rw-r--r--source3/modules/vfs_preopen.c6
3 files changed, 6 insertions, 6 deletions
diff --git a/source3/modules/vfs_aio_pthread.c b/source3/modules/vfs_aio_pthread.c
index 5642a89e2d..f7756b946c 100644
--- a/source3/modules/vfs_aio_pthread.c
+++ b/source3/modules/vfs_aio_pthread.c
@@ -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;
}
diff --git a/source3/modules/vfs_notify_fam.c b/source3/modules/vfs_notify_fam.c
index f10a4c9c94..54df0e4f24 100644
--- a/source3/modules/vfs_notify_fam.c
+++ b/source3/modules/vfs_notify_fam.c
@@ -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);
diff --git a/source3/modules/vfs_preopen.c b/source3/modules/vfs_preopen.c
index 175298685a..612b0252e2 100644
--- a/source3/modules/vfs_preopen.c
+++ b/source3/modules/vfs_preopen.c
@@ -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;