summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-04-15 17:36:11 +0200
committerMichael Adam <obnox@samba.org>2008-04-15 17:40:27 +0200
commit770b1923dc7735c2681c9976201569896feb74d9 (patch)
treef66c0ebbb0d46ecf0643b9744e74635a1e5e4a93 /source3
parent747d4a8f044adeb43dd251e2e6a44641c838785b (diff)
downloadsamba-770b1923dc7735c2681c9976201569896feb74d9.tar.gz
samba-770b1923dc7735c2681c9976201569896feb74d9.tar.bz2
samba-770b1923dc7735c2681c9976201569896feb74d9.zip
net conf: simplify logic in test output of net conf import.
Michael (This used to be commit 367c8b133b2f3e73155f20f689602909eef9827b)
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/net_conf.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/source3/utils/net_conf.c b/source3/utils/net_conf.c
index 7d1658ba94..293485aab1 100644
--- a/source3/utils/net_conf.c
+++ b/source3/utils/net_conf.c
@@ -150,18 +150,14 @@ static WERROR import_process_service(struct smbconf_ctx *conf_ctx,
TALLOC_CTX *mem_ctx = talloc_stackframe();
if (opt_testmode) {
+ const char *indent = "";
if (servicename != NULL) {
d_printf("[%s]\n", servicename);
- for (idx = 0; idx < num_params; idx++) {
- d_printf("\t%s = %s\n", param_names[idx],
- param_values[idx]);
- }
+ indent = "\t";
}
- else {
- for (idx = 0; idx < num_params; idx++) {
- d_printf("%s = %s\n", param_names[idx],
- param_values[idx]);
- }
+ for (idx = 0; idx < num_params; idx++) {
+ d_printf("%s%s = %s\n", indent, param_names[idx],
+ param_values[idx]);
}
d_printf("\n");
goto done;