1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-27 14:04:05 +03:00

registry: change init_registry() to return WERROR instead of bool.

Michael
(This used to be commit 0b196095dbbc29c796cb0742fe6e57a421e9596b)
This commit is contained in:
Michael Adam 2008-04-13 15:31:02 +02:00
parent 6c66d5d019
commit 281e610ff3
2 changed files with 3 additions and 6 deletions

View File

@ -62,11 +62,10 @@ REGISTRY_HOOK reg_hooks[] = {
with all available backens.
***********************************************************************/
bool init_registry( void )
WERROR init_registry(void)
{
int i;
WERROR werr;
bool ret = false;
werr = registry_init_common();
if (!W_ERROR_IS_OK(werr)) {
@ -99,10 +98,8 @@ bool init_registry( void )
eventlog_init_keys();
perfcount_init_keys();
ret = true;
fail:
/* close and let each smbd open up as necessary */
regdb_close();
return ret;
return werr;
}

View File

@ -1323,7 +1323,7 @@ extern void build_options(bool screen);
namecache_enable();
if (!init_registry())
if (!W_ERROR_IS_OK(init_registry()))
exit(1);
#if 0