summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-05-07 16:37:11 +0200
committerMichael Adam <obnox@samba.org>2009-05-08 01:18:58 +0200
commit31e06e63b7fbad6373dac32d9ea519d73a9c9642 (patch)
tree6a69388c1bc86e675adae3823179344c1d1aa80b
parente86a534fa707b44baec87060745dd8a557622721 (diff)
downloadsamba-31e06e63b7fbad6373dac32d9ea519d73a9c9642.tar.gz
samba-31e06e63b7fbad6373dac32d9ea519d73a9c9642.tar.bz2
samba-31e06e63b7fbad6373dac32d9ea519d73a9c9642.zip
s4:loadparm: fix brace indentation and add brace for clarity
Michael
-rw-r--r--source4/param/loadparm.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source4/param/loadparm.c b/source4/param/loadparm.c
index 6789aa1ac2..72a961aa51 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) {