r26540: Revert my previous commit after concerns raised by Andrew.
[samba.git] / source4 / utils / testparm.c
index 718daae908aab8aac78730bbea4666510116147e..a4ff5221866ec50e3a6b68e47d6a1dd0a782a0d1 100644 (file)
@@ -172,18 +172,18 @@ static int do_share_checks(struct loadparm_context *lp_ctx, const char *cname, c
 
  int main(int argc, const char *argv[])
 {
-       bool silent_mode = false;
+       static bool silent_mode = false;
        int ret = 0;
        poptContext pc;
 /*
-       int show_all_parameters = 0;
-       char *new_local_machine = NULL;
+       static int show_all_parameters = 0;
+       static char *new_local_machine = NULL;
 */
-       const char *section_name = NULL;
-       char *parameter_name = NULL;
-       const char *cname = NULL;
-       const char *caddr = NULL;
-       bool show_defaults = false;
+       static const char *section_name = NULL;
+       static char *parameter_name = NULL;
+       static const char *cname;
+       static const char *caddr;
+       static bool show_defaults = false;
        struct loadparm_context *lp_ctx;
 
        struct poptOption long_options[] = {