From: Michael Adam Date: Tue, 11 Mar 2008 11:36:18 +0000 (+0100) Subject: loadparm: use a function to check for the registry config backend. X-Git-Tag: samba-3.3.0pre1~3323 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4ac52a5a1dfe8f4f22e960db2e4ca99f9e262427;p=thirdparty%2Fsamba.git loadparm: use a function to check for the registry config backend. Michael --- diff --git a/source/param/loadparm.c b/source/param/loadparm.c index aaeafac21ea..c47e70492a5 100644 --- a/source/param/loadparm.c +++ b/source/param/loadparm.c @@ -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",