diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2002-11-04 14:08:11 +0000 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2002-11-04 14:08:11 +0000 |
commit | aeb94bb0d7ad84b52a5f729a3e83f4fb00005771 (patch) | |
tree | e31efba3c8e91fd8517d64ac3a56c713b7149343 /source/nmbd | |
parent | a0d13cd3f0ca1738fbd978ac67876196cd0ee56c (diff) | |
download | samba-aeb94bb0d7ad84b52a5f729a3e83f4fb00005771.tar.gz |
Make IRIX happy
Diffstat (limited to 'source/nmbd')
-rw-r--r-- | source/nmbd/nmbd.c | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/source/nmbd/nmbd.c b/source/nmbd/nmbd.c index 29caa64abc4..9f4a934fae8 100644 --- a/source/nmbd/nmbd.c +++ b/source/nmbd/nmbd.c @@ -661,28 +661,27 @@ static BOOL init_structs(void) **************************************************************************** */ int main(int argc, const char *argv[]) { - - extern BOOL append_log; - BOOL opt_interactive = False; - poptContext pc; - struct poptOption long_options[] = { - POPT_AUTOHELP - {"daemon", 'D', POPT_ARG_VAL, &is_daemon, True, "Become a daemon(default)" }, - {"log-append", 'a', POPT_ARG_VAL, &append_log, True, "Append to log file" }, - {"interactive", 'i', POPT_ARG_VAL, &opt_interactive, True, "Run interactive (not a daemon)" }, - {"log-overwrite", 'o', POPT_ARG_VAL, &append_log, False, "Overwrite log file, don't append" }, - {"hosts", 'H', POPT_ARG_STRING, dyn_LMHOSTSFILE, 'H', "Load a netbios hosts file"}, - {"port", 'p', POPT_ARG_INT, &global_nmb_port, NMB_PORT, "Listen on the specified port" }, + extern BOOL append_log; + static BOOL opt_interactive = False; + poptContext pc; + struct poptOption long_options[] = { + POPT_AUTOHELP + {"daemon", 'D', POPT_ARG_VAL, &is_daemon, True, "Become a daemon(default)" }, + {"log-append", 'a', POPT_ARG_VAL, &append_log, True, "Append to log file" }, + {"interactive", 'i', POPT_ARG_VAL, &opt_interactive, True, "Run interactive (not a daemon)" }, + {"log-overwrite", 'o', POPT_ARG_VAL, &append_log, False, "Overwrite log file, don't append" }, + {"hosts", 'H', POPT_ARG_STRING, dyn_LMHOSTSFILE, 'H', "Load a netbios hosts file"}, + {"port", 'p', POPT_ARG_INT, &global_nmb_port, NMB_PORT, "Listen on the specified port" }, {NULL, 0, POPT_ARG_INCLUDE_TABLE, popt_common_debug }, {NULL, 0, POPT_ARG_INCLUDE_TABLE, popt_common_configfile }, {NULL, 0, POPT_ARG_INCLUDE_TABLE, popt_common_socket_options }, {NULL, 0, POPT_ARG_INCLUDE_TABLE, popt_common_version }, {NULL, 0, POPT_ARG_INCLUDE_TABLE, popt_common_netbios_name }, {NULL, 0, POPT_ARG_INCLUDE_TABLE, popt_common_log_base }, - { NULL } - }; - int opt; - pstring logfile; + { NULL } + }; + int opt; + pstring logfile; append_log = True; /* Default, override with '-o' option. */ |