s3-debug Remove 'AllowDebugChange' and use lp_set_cmdline() instead
[abartlet/samba.git/.git] / source3 / torture / masktest.c
index b8bcb4ade0049dabb780b17d88c661bb1672cdb4..335bc4ca22357b094edf5a8201f35d42e589e8d1 100644 (file)
@@ -34,7 +34,6 @@ static int ignore_dot_errors = 0;
 
 extern char *optarg;
 extern int optind;
-extern bool AllowDebugChange;
 
 /* a test fn for LANMAN mask support */
 static int ms_fnmatch_lanman_core(const char *pattern, const char *string)
@@ -484,8 +483,7 @@ static void usage(void)
 
        setlinebuf(stdout);
 
-       DEBUGLEVEL = 0;
-       AllowDebugChange = False;
+       lp_set_cmdline("log level", "0");
 
        if (argc < 2 || argv[1][0] == '-') {
                usage();