diff options
author | Volker Lendecke <vlendec@samba.org> | 2006-11-22 15:10:46 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:16:01 -0500 |
commit | 6639f8c1190419e183d92ed0322e1026375717e6 (patch) | |
tree | f91b445940b8766f9dfeb6e762fbe39b88a6a1d8 /source/registry/reg_db.c | |
parent | 2091018a534006cddaa5cf52f564fd7e023473b6 (diff) | |
download | samba-6639f8c1190419e183d92ed0322e1026375717e6.tar.gz samba-6639f8c1190419e183d92ed0322e1026375717e6.tar.xz samba-6639f8c1190419e183d92ed0322e1026375717e6.zip |
r19837: Some reformatting (Jerry, I hope you do not mind
Diffstat (limited to 'source/registry/reg_db.c')
-rw-r--r-- | source/registry/reg_db.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/source/registry/reg_db.c b/source/registry/reg_db.c index b05e4957b8b..cc212ea4ccd 100644 --- a/source/registry/reg_db.c +++ b/source/registry/reg_db.c @@ -46,6 +46,7 @@ static const char *builtin_registry_paths[] = { KEY_PRINTING, KEY_SHARES, KEY_EVENTLOG, + KEY_SMBCONF, "HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Perflib", "HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Perflib\\009", "HKLM\\SYSTEM\\CurrentControlSet\\Control\\Print\\Monitors", @@ -369,7 +370,8 @@ BOOL regdb_store_keys( const char *key, REGSUBKEY_CTR *ctr ) REGSUBKEY_CTR *subkeys, *old_subkeys; char *oldkeyname; - /* fetch a list of the old subkeys so we can determine if any were deleted */ + /* fetch a list of the old subkeys so we can determine if any were + * deleted */ if ( !(old_subkeys = TALLOC_ZERO_P( ctr, REGSUBKEY_CTR )) ) { DEBUG(0,("regdb_store_keys: talloc() failure!\n")); @@ -381,7 +383,8 @@ BOOL regdb_store_keys( const char *key, REGSUBKEY_CTR *ctr ) /* store the subkey list for the parent */ if ( !regdb_store_keys_internal( key, ctr ) ) { - DEBUG(0,("regdb_store_keys: Failed to store new subkey list for parent [%s}\n", key )); + DEBUG(0,("regdb_store_keys: Failed to store new subkey list " + "for parent [%s}\n", key )); return False; } @@ -403,7 +406,8 @@ BOOL regdb_store_keys( const char *key, REGSUBKEY_CTR *ctr ) num_subkeys = regsubkey_ctr_numkeys( ctr ); for ( i=0; i<num_subkeys; i++ ) { - pstr_sprintf( path, "%s%c%s", key, '/', regsubkey_ctr_specific_key( ctr, i ) ); + pstr_sprintf( path, "%s%c%s", key, '/', + regsubkey_ctr_specific_key( ctr, i ) ); if ( !(subkeys = TALLOC_ZERO_P( ctr, REGSUBKEY_CTR )) ) { DEBUG(0,("regdb_store_keys: talloc() failure!\n")); @@ -413,7 +417,8 @@ BOOL regdb_store_keys( const char *key, REGSUBKEY_CTR *ctr ) if ( regdb_fetch_keys( path, subkeys ) == -1 ) { /* create a record with 0 subkeys */ if ( !regdb_store_keys_internal( path, subkeys ) ) { - DEBUG(0,("regdb_store_keys: Failed to store new record for key [%s}\n", path )); + DEBUG(0,("regdb_store_keys: Failed to store " + "new record for key [%s}\n", path )); TALLOC_FREE( subkeys ); return False; } |