summaryrefslogtreecommitdiffstats
path: root/source3/wrepld/server.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-11-12 23:20:50 +0000
committerJeremy Allison <jra@samba.org>2002-11-12 23:20:50 +0000
commit2f194322d419350f35a48dff750066894d68eccf (patch)
treeb0501eaf874ca8e740a51a8e0f29d261e32e0093 /source3/wrepld/server.c
parentf2b669b37fecda2687860eba4a15801dc89855dc (diff)
downloadsamba-2f194322d419350f35a48dff750066894d68eccf.tar.gz
samba-2f194322d419350f35a48dff750066894d68eccf.tar.xz
samba-2f194322d419350f35a48dff750066894d68eccf.zip
Removed global_myworkgroup, global_myname, global_myscope. Added liberal
dashes of const. This is a rather large check-in, some things may break. It does compile though :-). Jeremy. (This used to be commit f755711df8f74f9b8e8c1a2b0d07d02a931eeb89)
Diffstat (limited to 'source3/wrepld/server.c')
-rw-r--r--source3/wrepld/server.c30
1 files changed, 3 insertions, 27 deletions
diff --git a/source3/wrepld/server.c b/source3/wrepld/server.c
index f08674afbb2..295eb15596a 100644
--- a/source3/wrepld/server.c
+++ b/source3/wrepld/server.c
@@ -21,9 +21,6 @@
#include "includes.h"
#include "wins_repl.h"
-extern fstring global_myworkgroup;
-extern pstring global_myname;
-
extern pstring user_socket_options;
extern WINS_OWNER *global_wins_table;
@@ -163,29 +160,9 @@ void exit_server(char *reason)
}
/****************************************************************************
- initialise connect, service and file structs
+ Usage of the program.
****************************************************************************/
-static void init_structs(void )
-{
- /*
- * Set the machine NETBIOS name if not already
- * set from the config file.
- */
-
- if (!*global_myname) {
- char *p;
- fstrcpy( global_myname, myhostname() );
- p = strchr_m( global_myname, '.' );
- if (p)
- *p = 0;
- }
- strupper( global_myname );
-}
-
-/****************************************************************************
-usage on the program
-****************************************************************************/
static void usage(char *pname)
{
@@ -684,7 +661,8 @@ static void process(void)
if (!reload_services(False))
return(-1);
- init_structs();
+ if (!init_names())
+ return -1;
#ifdef WITH_PROFILE
if (!profile_setup(False)) {
@@ -693,8 +671,6 @@ static void process(void)
}
#endif
- fstrcpy(global_myworkgroup, lp_workgroup());
-
CatchSignal(SIGHUP,SIGNAL_CAST sig_hup);
DEBUG(3,( "loaded services\n"));