[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha7-1503-gc469ec5

Michael Adam obnox at samba.org
Thu May 7 23:21:50 GMT 2009


The branch, master has been updated
       via  c469ec5c10b48548e1fae51511bd55fb437a0a89 (commit)
       via  31e06e63b7fbad6373dac32d9ea519d73a9c9642 (commit)
      from  e86a534fa707b44baec87060745dd8a557622721 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit c469ec5c10b48548e1fae51511bd55fb437a0a89
Author: Michael Adam <obnox at samba.org>
Date:   Thu May 7 16:49:58 2009 +0200

    s4:loadparm: fix a comment typo. and line wrapping.
    
    Michael

commit 31e06e63b7fbad6373dac32d9ea519d73a9c9642
Author: Michael Adam <obnox at samba.org>
Date:   Thu May 7 16:37:11 2009 +0200

    s4:loadparm: fix brace indentation and add brace for clarity
    
    Michael

-----------------------------------------------------------------------

Summary of changes:
 source4/param/loadparm.c |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source4/param/loadparm.c b/source4/param/loadparm.c
index 6789aa1..d6f418e 100644
--- a/source4/param/loadparm.c
+++ b/source4/param/loadparm.c
@@ -2083,11 +2083,12 @@ static void dump_a_service(struct loadparm_service * pService, struct loadparm_s
 	if (pService != sDefault)
 		fprintf(f, "\n[%s]\n", pService->szService);
 
-	for (i = 0; parm_table[i].label; i++)
+	for (i = 0; parm_table[i].label; i++) {
 		if (parm_table[i].pclass == P_LOCAL &&
 		    parm_table[i].offset != -1 &&
 		    (*parm_table[i].label != '-') &&
-		    (i == 0 || (parm_table[i].offset != parm_table[i - 1].offset))) {
+		    (i == 0 || (parm_table[i].offset != parm_table[i - 1].offset)))
+		{
 			if (pService == sDefault) {
 				if (defaults_saved && is_default(sDefault, i))
 					continue;
@@ -2104,6 +2105,7 @@ static void dump_a_service(struct loadparm_service * pService, struct loadparm_s
 			print_parameter(&parm_table[i],
 					((char *)pService) + parm_table[i].offset, f);
 			fprintf(f, "\n");
+		}
 	}
 	if (pService->param_opt != NULL) {
 		for (data = pService->param_opt; data; data = data->next) {
@@ -2132,7 +2134,8 @@ bool lp_dump_a_parameter(struct loadparm_context *lp_ctx,
 }
 
 /**
- * Return info about the next service  in a service. snum==-1 gives the globals.
+ * Return info about the next parameter in a service.
+ * snum==-1 gives the globals.
  * Return NULL when out of parameters.
  */
 


-- 
Samba Shared Repository


More information about the samba-cvs mailing list