diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2003-03-24 14:32:11 +0000 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2003-03-24 14:32:11 +0000 |
commit | 8df30059ef100a4d5e21501d7746427b4d312589 (patch) | |
tree | 6feb632a65e9ef4a2d0984c602087bf9386e56c7 /source/wrepld | |
parent | bd197baa8657d7708804e67e37d10be6acf75af6 (diff) | |
download | samba-8df30059ef100a4d5e21501d7746427b4d312589.tar.gz samba-8df30059ef100a4d5e21501d7746427b4d312589.tar.xz samba-8df30059ef100a4d5e21501d7746427b4d312589.zip |
Don't use old usage() function, but the one from popt.
Remove some useless arguments
Diffstat (limited to 'source/wrepld')
-rw-r--r-- | source/wrepld/server.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/source/wrepld/server.c b/source/wrepld/server.c index 196ea0d1d10..504818b8d52 100644 --- a/source/wrepld/server.c +++ b/source/wrepld/server.c @@ -160,15 +160,6 @@ void exit_server(const char *reason) } /**************************************************************************** - Usage of the program. -****************************************************************************/ - -static void usage(char *pname) -{ - -} - -/**************************************************************************** Create an fd_set containing all the sockets in the subnet structures, plus the broadcast sockets. ***************************************************************************/ @@ -516,7 +507,6 @@ static void process(void) { "interactive", 'i', POPT_ARG_NONE, NULL, 'i', "Run interactive (not a daemon)" }, { "port", 'p', POPT_ARG_INT, &wins_port, 'p', "Listen on the specified port" }, POPT_COMMON_SAMBA - POPT_COMMON_CONNECTION POPT_TABLEEND }; int opt; @@ -539,11 +529,10 @@ static void process(void) } } - poptFreeContext(pc); if (log_stdout && Fork) { d_printf("Can't log to stdout (-S) unless daemon is in foreground (-F) or interactive (-i)\n"); - usage(argv[0]); + poptPrintUsage(pc, stderr, 0); exit(1); } @@ -671,6 +660,7 @@ static void process(void) process(); + poptFreeContext(pc); exit_server("normal exit"); return(0); } |