mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
net conf: simplify logic in test output of net conf import.
Michael
(This used to be commit 367c8b133b
)
This commit is contained in:
parent
747d4a8f04
commit
770b1923dc
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user