]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
loadparm: use a function to check for the registry config backend.
authorMichael Adam <obnox@samba.org>
Tue, 11 Mar 2008 11:36:18 +0000 (12:36 +0100)
committerMichael Adam <obnox@samba.org>
Wed, 12 Mar 2008 01:12:33 +0000 (02:12 +0100)
Michael

source/param/loadparm.c

index aaeafac21eae7dd6c7dd17a785bdc256cf3caadb..c47e70492a5e24134ec9901a7fcd83c21c10c0dc 100644 (file)
@@ -6596,7 +6596,7 @@ bool lp_file_list_changed(void)
 
        DEBUG(6, ("lp_file_list_changed()\n"));
 
-       if (lp_config_backend() == CONFIG_BACKEND_REGISTRY) {
+       if (lp_config_backend_is_registry()) {
                uint64_t conf_cur_seqnum;
                if (conf_ctx == NULL) {
                        WERROR werr;
@@ -8689,7 +8689,7 @@ bool lp_load(const char *pszFname,
                        }
                }
 
-               if (lp_config_backend() == CONFIG_BACKEND_REGISTRY) {
+               if (lp_config_backend_is_registry()) {
                        /*
                         * We need to use this extra global variable here to
                         * survive restart: init_globals usese this as a default
@@ -8702,7 +8702,7 @@ bool lp_load(const char *pszFname,
                        return lp_load(pszFname, global_only, save_defaults,
                                       add_ipc, initialize_globals);
                }
-       } else if (lp_config_backend() == CONFIG_BACKEND_REGISTRY) {
+       } else if (lp_config_backend_is_registry()) {
                bRetval = process_registry_globals(do_parameter);
        } else {
                DEBUG(0, ("Illegal config  backend given: %d\n",