summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2016-09-23 19:11:17 -0700
committerVolker Lendecke <vl@samba.org>2016-09-24 19:52:08 +0200
commitfbfea52e1ce8f22d8d020a2bf3aebd1bc69faceb (patch)
treef98da5f6be18e6a6525c7e7702ce4758b18e09b3 /source3
parent72785309aa2d1bed7abc6dd7c6475ff0f78411da (diff)
downloadsamba-fbfea52e1ce8f22d8d020a2bf3aebd1bc69faceb.tar.gz
s3: server: s3_tevent_context_init() -> samba_tevent_context_init()
We can now remove source3/lib/events.c Bug: https://bugzilla.samba.org/show_bug.cgi?id=12283 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/server_contexts.c2
-rw-r--r--source3/rpc_server/rpc_ncacn_np.c8
-rw-r--r--source3/smbd/process.c4
-rw-r--r--source3/smbd/server.c1
4 files changed, 7 insertions, 8 deletions
diff --git a/source3/lib/server_contexts.c b/source3/lib/server_contexts.c
index d49e33402fa..50072e680b6 100644
--- a/source3/lib/server_contexts.c
+++ b/source3/lib/server_contexts.c
@@ -31,7 +31,7 @@ struct tevent_context *server_event_context(void)
* autofree context, to avoid side effects in forked
* children exiting.
*/
- server_event_ctx = s3_tevent_context_init(NULL);
+ server_event_ctx = samba_tevent_context_init(NULL);
}
if (!server_event_ctx) {
smb_panic("Could not init server's event context");
diff --git a/source3/rpc_server/rpc_ncacn_np.c b/source3/rpc_server/rpc_ncacn_np.c
index f9c73de81e5..083cbbeb454 100644
--- a/source3/rpc_server/rpc_ncacn_np.c
+++ b/source3/rpc_server/rpc_ncacn_np.c
@@ -708,9 +708,9 @@ NTSTATUS make_external_rpc_pipe(TALLOC_CTX *mem_ctx,
goto out;
}
- ev_ctx = s3_tevent_context_init(tmp_ctx);
+ ev_ctx = samba_tevent_context_init(tmp_ctx);
if (ev_ctx == NULL) {
- DEBUG(0, ("s3_tevent_context_init failed\n"));
+ DEBUG(0, ("samba_tevent_context_init failed\n"));
status = NT_STATUS_NO_MEMORY;
goto out;
}
@@ -816,9 +816,9 @@ struct np_proxy_state *make_external_rpc_pipe_p(TALLOC_CTX *mem_ctx,
goto fail;
}
- ev = s3_tevent_context_init(talloc_tos());
+ ev = samba_tevent_context_init(talloc_tos());
if (ev == NULL) {
- DEBUG(0, ("s3_tevent_context_init failed\n"));
+ DEBUG(0, ("samba_tevent_context_init failed\n"));
goto fail;
}
diff --git a/source3/smbd/process.c b/source3/smbd/process.c
index e3c32f945f7..8f097ecbc00 100644
--- a/source3/smbd/process.c
+++ b/source3/smbd/process.c
@@ -3224,9 +3224,9 @@ static void smbd_echo_loop(struct smbXsrv_connection *xconn,
}
state->xconn = xconn;
state->parent_pipe = parent_pipe;
- state->ev = s3_tevent_context_init(state);
+ state->ev = samba_tevent_context_init(state);
if (state->ev == NULL) {
- DEBUG(1, ("tevent_context_init failed\n"));
+ DEBUG(1, ("samba_tevent_context_init failed\n"));
TALLOC_FREE(state);
return;
}
diff --git a/source3/smbd/server.c b/source3/smbd/server.c
index f1e64aca98e..3cbd08971fe 100644
--- a/source3/smbd/server.c
+++ b/source3/smbd/server.c
@@ -1670,7 +1670,6 @@ extern void build_options(bool screen);
* Initialize the event context. The event context needs to be
* initialized before the messaging context, cause the messaging
* context holds an event context.
- * FIXME: This should be s3_tevent_context_init()
*/
ev_ctx = server_event_context();
if (ev_ctx == NULL) {