summaryrefslogtreecommitdiff
path: root/w.c
diff options
context:
space:
mode:
authorJim Warner <james.warner@comcast.net>2013-03-31 00:00:00 -0500
committerCraig Small <csmall@enc.com.au>2013-04-07 18:05:01 +1000
commit7888f6a679e35e9a864a95575b1a8f14d8f0ec8d (patch)
treeca1bcbc2076a1ecd699415c9fe2f68ef8243a101 /w.c
parent293b668d5fe4e0d64fd5c77fa46ff14bb1e6e2e3 (diff)
downloadprocps-ng-7888f6a679e35e9a864a95575b1a8f14d8f0ec8d.tar.gz
miscellaneous: clean up trailing whitespace once again
An earlier commit attempted to cleanse our environment of all useless trailing whitespace. But the effort did not catch 'empty' lines with a single space before ^J. This commit hopefully finishes off the earlier effort. In the meantime, let's pray that contributors' editors are configured so that such wasted crap is disallowed! Reference(s): commit fe75e26ab64dab88762230db0797e765507b73ac Signed-off-by: Jim Warner <james.warner@comcast.net>
Diffstat (limited to 'w.c')
-rw-r--r--w.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/w.c b/w.c
index a73f328..fee9308 100644
--- a/w.c
+++ b/w.c
@@ -142,12 +142,12 @@ static void print_display_or_interface(const char *restrict host, int len, int r
fputc('-', stdout);
}
} else { /* multiple colons found - it's an IPv6 address */
-
+
/* search for % (interface separator in case of IPv6 link address) */
while ( (tmp < (host + len)) && (*tmp != '%') && isprint(*tmp) ) tmp++;
if (*tmp == '%') { /* interface separator found */
-
+
/* number of chars till the end of the input field */
len -= (tmp - host);