r26355: Eliminate global_loadparm in more places.
[ambi/samba-autobuild/.git] / source4 / lib / registry / tools / regtree.c
index 6c21f2cbad4cda995bcb9045755b8385f0af3b0e..b267e11b43d3dc3f78324583be855f72b49f65ce 100644 (file)
@@ -129,11 +129,11 @@ int main(int argc, char **argv)
        }
 
        if (remote != NULL) {
-               h = reg_common_open_remote(remote, global_loadparm, cmdline_credentials);
+               h = reg_common_open_remote(remote, cmdline_lp_ctx, cmdline_credentials);
        } else if (file != NULL) {
                start_key = reg_common_open_file(file, cmdline_credentials);
        } else {
-               h = reg_common_open_local(cmdline_credentials, global_loadparm);
+               h = reg_common_open_local(cmdline_credentials, cmdline_lp_ctx);
        }
 
        if (h == NULL && start_key == NULL)