summaryrefslogtreecommitdiff
path: root/source3/registry/reg_init_full.c
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-04-13 15:21:31 +0200
committerMichael Adam <obnox@samba.org>2008-04-13 15:33:48 +0200
commit4ae2e8c7ba7f4bf12e83c68eacd9cb4c1b914be5 (patch)
tree636a057878c770460c4765e36d17276ef0d3956c /source3/registry/reg_init_full.c
parent3f01e05a77eec61f367e5cce7908bdcf02d1749a (diff)
downloadsamba-4ae2e8c7ba7f4bf12e83c68eacd9cb4c1b914be5.tar.gz
samba-4ae2e8c7ba7f4bf12e83c68eacd9cb4c1b914be5.tar.bz2
samba-4ae2e8c7ba7f4bf12e83c68eacd9cb4c1b914be5.zip
registry: refactor common part of registry initialization out.
into a new function registry_init_common(). Michael (This used to be commit 5da52b95ac69e4abfbc44335df2447bec8f16e13)
Diffstat (limited to 'source3/registry/reg_init_full.c')
-rw-r--r--source3/registry/reg_init_full.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/source3/registry/reg_init_full.c b/source3/registry/reg_init_full.c
index e24cb61481..ae12e30766 100644
--- a/source3/registry/reg_init_full.c
+++ b/source3/registry/reg_init_full.c
@@ -68,10 +68,8 @@ bool init_registry( void )
WERROR werr;
bool ret = false;
- werr = regdb_init();
+ werr = registry_init_common();
if (!W_ERROR_IS_OK(werr)) {
- DEBUG(0, ("Failed to initialize the registry: %s\n",
- dos_errstr(werr)));
goto fail;
}
@@ -85,13 +83,6 @@ bool init_registry( void )
/* build the cache tree of registry hooks */
- werr = reghook_cache_init();
- if (!W_ERROR_IS_OK(werr)) {
- DEBUG(0, ("Failed to initialize the reghook cache: %s\n",
- dos_errstr(werr)));
- goto fail;
- }
-
for ( i=0; reg_hooks[i].keyname; i++ ) {
werr = reghook_cache_add(reg_hooks[i].keyname, reg_hooks[i].ops);
if (!W_ERROR_IS_OK(werr)) {