Make variables static to satisfy exotic compilers
authorJelmer Vernooij <jelmer@samba.org>
Tue, 25 Mar 2003 13:40:34 +0000 (13:40 +0000)
committerJelmer Vernooij <jelmer@samba.org>
Tue, 25 Mar 2003 13:40:34 +0000 (13:40 +0000)
(This used to be commit 094eed2c6222fe167ee9f596f4b849a4dea234bf)

source3/utils/nmblookup.c
source3/utils/testparm.c

index 85f092c8b07d6d2de0b131c7aa755e7441f43d7d..31c7967a07620ed6a213aa7ea743a473b49bdc19 100644 (file)
@@ -187,8 +187,8 @@ int main(int argc,char *argv[])
   int opt;
   unsigned int lookup_type = 0x0;
   fstring lookup;
-  BOOL find_master=False;
-  BOOL lookup_by_ip = False;
+  static BOOL find_master=False;
+  static BOOL lookup_by_ip = False;
   poptContext pc;
 
   struct poptOption long_options[] = {
index 4c8a2ccf639ff44ade480256923ad5a95134b715..e8dd3c15b229139c3c63c4eb9ad348357c2e123c 100644 (file)
@@ -192,7 +192,6 @@ via the %%o substitution. With encrypted passwords this is not possible.\n", lp_
        int s;
        static BOOL silent_mode = False;
        int ret = 0;
-       int opt;
        poptContext pc;
        static const char *term_code = "";
        static char *new_local_machine = NULL;