summaryrefslogtreecommitdiff
path: root/source3/registry
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-11-22 15:10:46 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:16:01 -0500
commitaad7194999583740d406cbe7ce0338ebb9b69d4e (patch)
tree4d84f31a7a577226fef004d80123834d58c8bd0f /source3/registry
parentb724a280197e01b4b1dd0d82edff1d97f511eb44 (diff)
downloadsamba-aad7194999583740d406cbe7ce0338ebb9b69d4e.tar.gz
samba-aad7194999583740d406cbe7ce0338ebb9b69d4e.tar.bz2
samba-aad7194999583740d406cbe7ce0338ebb9b69d4e.zip
r19837: Some reformatting (Jerry, I hope you do not mind
(This used to be commit 6639f8c1190419e183d92ed0322e1026375717e6)
Diffstat (limited to 'source3/registry')
-rw-r--r--source3/registry/reg_db.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/source3/registry/reg_db.c b/source3/registry/reg_db.c
index b05e4957b8..cc212ea4cc 100644
--- a/source3/registry/reg_db.c
+++ b/source3/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;
}