summaryrefslogtreecommitdiff
path: root/source4/smbd/server.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-01-03 15:24:31 +0100
committerStefan Metzmacher <metze@samba.org>2009-01-03 19:58:57 +0100
commit47d532fa685d46752650225c807f579ce658b323 (patch)
treeb34813da369a6402fb41c8a7f9a21a565afb20a4 /source4/smbd/server.c
parent1c8580cfa937bef1b15842b5b0615d7926b12402 (diff)
downloadsamba-47d532fa685d46752650225c807f579ce658b323.tar.gz
samba-47d532fa685d46752650225c807f579ce658b323.tar.bz2
samba-47d532fa685d46752650225c807f579ce658b323.zip
s4:smbd: convert to tevent_* api
metze
Diffstat (limited to 'source4/smbd/server.c')
-rw-r--r--source4/smbd/server.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/source4/smbd/server.c b/source4/smbd/server.c
index 1eb3e42501..df970661f1 100644
--- a/source4/smbd/server.c
+++ b/source4/smbd/server.c
@@ -323,7 +323,7 @@ static int binary_smbd_main(const char *binary_name, int argc, const char *argv[
if (opt_interactive) {
/* terminate when stdin goes away */
- stdin_event_flags = EVENT_FD_READ;
+ stdin_event_flags = TEVENT_FD_READ;
} else {
/* stay alive forever */
stdin_event_flags = 0;
@@ -333,15 +333,15 @@ static int binary_smbd_main(const char *binary_name, int argc, const char *argv[
#ifdef SIGTTIN
signal(SIGTTIN, SIG_IGN);
#endif
- event_add_fd(event_ctx, event_ctx, 0, stdin_event_flags,
- server_stdin_handler,
- discard_const(binary_name));
+ tevent_add_fd(event_ctx, event_ctx, 0, stdin_event_flags,
+ server_stdin_handler,
+ discard_const(binary_name));
if (max_runtime) {
- event_add_timed(event_ctx, event_ctx,
- timeval_current_ofs(max_runtime, 0),
- max_runtime_handler,
- discard_const(binary_name));
+ tevent_add_timer(event_ctx, event_ctx,
+ timeval_current_ofs(max_runtime, 0),
+ max_runtime_handler,
+ discard_const(binary_name));
}
DEBUG(0,("%s: using '%s' process model\n", binary_name, model));
@@ -354,7 +354,7 @@ static int binary_smbd_main(const char *binary_name, int argc, const char *argv[
/* wait for events - this is where smbd sits for most of its
life */
- event_loop_wait(event_ctx);
+ tevent_loop_wait(event_ctx);
/* as everything hangs off this event context, freeing it
should initiate a clean shutdown of all services */