diff options
author | Björn Jacke <bj@sernet.de> | 2009-10-14 00:22:08 +0200 |
---|---|---|
committer | Björn Jacke <bj@sernet.de> | 2009-10-14 00:22:08 +0200 |
commit | e33c23dc5cc2a0fc58f6af1d37f57675cc2c698f (patch) | |
tree | 3f5f066907119a245b1e965b5dcb11192709f92d /source3/utils | |
parent | 6deb1fcc8899c9d462a30712bcc20019819fc176 (diff) | |
download | samba-e33c23dc5cc2a0fc58f6af1d37f57675cc2c698f.tar.gz |
s3:net: simplify padding to single printf call
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/net_rpc_audit.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/source3/utils/net_rpc_audit.c b/source3/utils/net_rpc_audit.c index f0b440d3bea..bc3ed3dba24 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); } /******************************************************************** |