s4: popt: Global replace of cmdline_credentials -> popt_get_cmdline_credentials().
[bbaumbach/samba-autobuild/.git] / source4 / lib / registry / tools / regtree.c
index 56f38e7d4bace04294e65a2b2667a02cb63ae650..d4319f5f6bbc839797e370e0749d034462aa162f 100644 (file)
@@ -131,11 +131,14 @@ int main(int argc, const char **argv)
        ev_ctx = s4_event_context_init(NULL);
 
        if (remote != NULL) {
-               h = reg_common_open_remote(remote, ev_ctx, cmdline_lp_ctx, cmdline_credentials);
+               h = reg_common_open_remote(remote, ev_ctx, cmdline_lp_ctx,
+                               popt_get_cmdline_credentials());
        } else if (file != NULL) {
-               start_key = reg_common_open_file(file, ev_ctx, cmdline_lp_ctx, cmdline_credentials);
+               start_key = reg_common_open_file(file, ev_ctx, cmdline_lp_ctx,
+                               popt_get_cmdline_credentials());
        } else {
-               h = reg_common_open_local(cmdline_credentials, ev_ctx, cmdline_lp_ctx);
+               h = reg_common_open_local(popt_get_cmdline_credentials(),
+                               ev_ctx, cmdline_lp_ctx);
        }
 
        if (h == NULL && start_key == NULL)