diff options
author | Michael Adam <obnox@samba.org> | 2008-03-11 12:36:18 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2008-03-12 02:12:33 +0100 |
commit | 4f739abea5524153942bbb8b14bc8d2978738f34 (patch) | |
tree | 14bd8d0b342f17a22533a9c1fcdefaea3613bafb | |
parent | 2e2302259f77822e1a08df4a30d5ffe33bcba657 (diff) | |
download | samba-4f739abea5524153942bbb8b14bc8d2978738f34.tar.gz samba-4f739abea5524153942bbb8b14bc8d2978738f34.tar.bz2 samba-4f739abea5524153942bbb8b14bc8d2978738f34.zip |
loadparm: use a function to check for the registry config backend.
Michael
(This used to be commit 4ac52a5a1dfe8f4f22e960db2e4ca99f9e262427)
-rw-r--r-- | source3/param/loadparm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index aaeafac21e..c47e70492a 100644 --- a/source3/param/loadparm.c +++ b/source3/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", |