summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/utils/net_rpc_audit.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/source3/utils/net_rpc_audit.c b/source3/utils/net_rpc_audit.c
index f0b440d3be..bc3ed3dba2 100644
--- a/source3/utils/net_rpc_audit.c
+++ b/source3/utils/net_rpc_audit.c
@@ -40,9 +40,6 @@ static int net_help_audit(struct net_context *c, int argc, const char **argv)
static void print_auditing_category(const char *policy, const char *value)
{
- fstring padding;
- int pad_len, col_len = 30;
-
if (policy == NULL) {
policy = N_("Unknown");
}
@@ -50,12 +47,7 @@ static void print_auditing_category(const char *policy, const char *value)
value = N_("Invalid");
}
- /* calculate padding space for d_printf to look nicer */
- pad_len = col_len - strlen(policy);
- padding[pad_len] = 0;
- do padding[--pad_len] = ' '; while (pad_len > 0);
-
- d_printf(_("\t%s%s%s\n"), policy, padding, value);
+ d_printf(_("\t%-30s%s\n"), policy, value);
}
/********************************************************************