aboutsummaryrefslogtreecommitdiff
path: root/toys/pending
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2016-06-10 09:08:33 -0700
committerRob Landley <rob@landley.net>2016-06-10 18:54:54 -0500
commit5cf208c2ec9639bbfba32a1b702d004d7a45f954 (patch)
tree53b19bdca6bbbe9f553ca55d74001671513d3ab7 /toys/pending
parent2eefc17894718cf963b02b0d690e2991e10515c8 (diff)
downloadtoybox-5cf208c2ec9639bbfba32a1b702d004d7a45f954.tar.gz
Fix trailing whitespace bug in netstat.
Spotted while trying to diff netstat -nt against toybox netstat -nt.
Diffstat (limited to 'toys/pending')
-rw-r--r--toys/pending/netstat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/toys/pending/netstat.c b/toys/pending/netstat.c
index f8d622e2..c77f49f5 100644
--- a/toys/pending/netstat.c
+++ b/toys/pending/netstat.c
@@ -147,9 +147,9 @@ static void display_data(unsigned rport, char *label,
xprintf("%3s %6d %6d ", label, rxq, txq);
xprintf((toys.optflags & FLAG_W) ? "%-51.51s %-51.51s " : "%-23.23s %-23.23s "
, lip, rip);
- xprintf("%-11s ", ss_state);
- if ((toys.optflags & FLAG_e)) xprintf("%-10s %-11ld ", user, inode);
- if ((toys.optflags & FLAG_p)) xprintf("%s", get_pid_name(inode));
+ xprintf("%-11s", ss_state);
+ if ((toys.optflags & FLAG_e)) xprintf(" %-10s %-11ld", user, inode);
+ if ((toys.optflags & FLAG_p)) xprintf(" %s", get_pid_name(inode));
xputc('\n');
}