s3:libsmbconf: use lp_load_global() in the testsuite
authorMichael Adam <obnox@samba.org>
Wed, 27 Jul 2011 14:29:04 +0000 (16:29 +0200)
committerMichael Adam <obnox@samba.org>
Thu, 28 Jul 2011 09:17:30 +0000 (11:17 +0200)
source3/lib/smbconf/testsuite.c

index c2a9a59cbef873a3aff53e298abb4e334209ef1f..9e679362a325186a7bcb1e5b7e6c37ac46b0d2aa 100644 (file)
@@ -304,12 +304,7 @@ int main(int argc, const char **argv)
 
        poptFreeContext(pc);
 
-       ret = lp_load(get_dyn_CONFIGFILE(),
-                     true,  /* globals_only */
-                     false, /* save_defaults */
-                     false, /* add_ipc */
-                     true   /* initialize globals */);
-
+       ret = lp_load_global(get_dyn_CONFIGFILE());
        if (!ret) {
                printf("failure: error loading the configuration\n");
                goto done;