diff options
author | Michael Adam <obnox@samba.org> | 2008-03-22 01:53:44 +0100 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2008-03-27 08:38:23 +0100 |
commit | 10acd27eff9ed5c2bc52cdd7615a66a5b500a836 (patch) | |
tree | 77a25a7bcd2a948af9e12688d2caf2e7edd4d6e5 /source/registry | |
parent | 55e4d8f08b52086e137e16d03612058be0503fff (diff) | |
download | samba-10acd27eff9ed5c2bc52cdd7615a66a5b500a836.tar.gz samba-10acd27eff9ed5c2bc52cdd7615a66a5b500a836.tar.xz samba-10acd27eff9ed5c2bc52cdd7615a66a5b500a836.zip |
registry: some whitespace cleanup in init_registry().
Michael
(cherry picked from commit f33095e44ba22f4451a5deeffdd4f9ed3f99ed85)
Diffstat (limited to 'source/registry')
-rw-r--r-- | source/registry/reg_init_full.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/source/registry/reg_init_full.c b/source/registry/reg_init_full.c index 518cccb1b26..ad245cb52e9 100644 --- a/source/registry/reg_init_full.c +++ b/source/registry/reg_init_full.c @@ -61,29 +61,30 @@ REGISTRY_HOOK reg_hooks[] = { Open the registry database and initialize the REGISTRY_HOOK cache with all available backens. ***********************************************************************/ - + bool init_registry( void ) { int i; bool ret = false; - - + if ( !regdb_init() ) { - DEBUG(0,("init_registry: failed to initialize the registry tdb!\n")); + DEBUG(0, ("init_registry: failed to initialize the registry " + "tdb!\n")); goto fail; } /* setup the necessary keys and values */ if ( !init_registry_data() ) { - DEBUG(0,("regdb_init: Failed to initialize data in registry!\n")); + DEBUG(0, ("regdb_init: Failed to initialize data in " + "registry!\n")); goto fail; } /* build the cache tree of registry hooks */ - + reghook_cache_init(); - + for ( i=0; reg_hooks[i].keyname; i++ ) { if ( !reghook_cache_add(®_hooks[i]) ) goto fail; @@ -98,9 +99,9 @@ bool init_registry( void ) eventlog_init_keys(); perfcount_init_keys(); - ret = true; - fail: + +fail: /* close and let each smbd open up as necessary */ regdb_close(); return ret; |