svn commit: samba r19837 - in branches/SAMBA_3_0/source/registry: .

vlendec at samba.org vlendec at samba.org
Wed Nov 22 15:10:47 GMT 2006


Author: vlendec
Date: 2006-11-22 15:10:46 +0000 (Wed, 22 Nov 2006)
New Revision: 19837

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=19837

Log:
Some reformatting (Jerry, I hope you do not mind
Modified:
   branches/SAMBA_3_0/source/registry/reg_db.c


Changeset:
Modified: branches/SAMBA_3_0/source/registry/reg_db.c
===================================================================
--- branches/SAMBA_3_0/source/registry/reg_db.c	2006-11-22 14:56:40 UTC (rev 19836)
+++ branches/SAMBA_3_0/source/registry/reg_db.c	2006-11-22 15:10:46 UTC (rev 19837)
@@ -46,6 +46,7 @@
 	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 @@
 	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 @@
 	/* 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 @@
 	
 	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 @@
 		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;
 			}



More information about the samba-cvs mailing list