fix startup of smbd, nmbd, winbindd
[jerry/samba.git] / source / nmbd / nmbd.c
index 46808f51ded7365d7a0676e3d2f78f9856101023..510e676e33a03dc0326c531cbe2e5991d6d0c74b 100644 (file)
@@ -31,15 +31,6 @@ extern bool global_in_nmbd;
 
 extern bool override_logfile;
 
-/* are we running as a daemon ? */
-static bool is_daemon;
-
-/* fork or run in foreground ? */
-static bool Fork = True;
-
-/* log to standard output ? */
-static bool log_stdout;
-
 /* have we found LanMan clients yet? */
 bool found_lm_clients = False;
 
@@ -692,11 +683,14 @@ static bool open_sockets(bool isdaemon, int port)
  **************************************************************************** */
  int main(int argc, const char *argv[])
 {
+       static int is_daemon;
+       static int Fork = True;
+       static int log_stdout;
        pstring logfile;
-       static bool opt_interactive;
+       static int opt_interactive;
        poptContext pc;
        static char *p_lmhosts = dyn_LMHOSTSFILE;
-       static bool no_process_group = False;
+       static int no_process_group = False;
        int opt;
        struct poptOption long_options[] = {
        POPT_AUTOHELP