summaryrefslogtreecommitdiff
path: root/source3/smbd/server.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-07-20 08:44:34 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-07-20 08:44:34 +0000
commitf65440ff52139ce7710d03cbb6b37360e3391d32 (patch)
tree3ecd2dc0414706f196b3be06d7d5e610633afb05 /source3/smbd/server.c
parent714abda3e749ae364806633b2ccc17c03a453bf4 (diff)
downloadsamba-f65440ff52139ce7710d03cbb6b37360e3391d32.tar.gz
samba-f65440ff52139ce7710d03cbb6b37360e3391d32.tar.bz2
samba-f65440ff52139ce7710d03cbb6b37360e3391d32.zip
Move some startup time initialisation to server.c, so it is all in one place.
I'm not sure that we need that "dummy" talloc init, but anyway... Also, add some 'const' to the table of smb reply functions. Andrew Bartlett (This used to be commit 790b7c9ab82f930da66426e7a932d7365bd27725)
Diffstat (limited to 'source3/smbd/server.c')
-rw-r--r--source3/smbd/server.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/smbd/server.c b/source3/smbd/server.c
index a0d448151f..fdc59f12c0 100644
--- a/source3/smbd/server.c
+++ b/source3/smbd/server.c
@@ -887,6 +887,13 @@ static void usage(char *pname)
if (!init_change_notify())
exit(1);
+ /* re-initialise the timezone */
+ TimeInit();
+
+ /* register our message handlers */
+ message_register(MSG_SMB_FORCE_TDIS, msg_force_tdis);
+ talloc_init_named("dummy!");
+
smbd_process();
uni_group_cache_shutdown();