diff options
author | bde <bde@FreeBSD.org> | 2006-04-30 04:47:23 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 2006-04-30 04:47:23 +0000 |
commit | c4e64014b7b707ed9a96ba6b0d4afac890bf9d5f (patch) | |
tree | 7f9eb14c79af417371fb32ec9af65b7591e710fa /usr.bin/systat/netstat.c | |
parent | 1a769818fed8aac0f389ffe0e1c8b90b88451e87 (diff) | |
download | FreeBSD-src-c4e64014b7b707ed9a96ba6b0d4afac890bf9d5f.zip FreeBSD-src-c4e64014b7b707ed9a96ba6b0d4afac890bf9d5f.tar.gz |
Remove trailing whitespace.
Submitted by: Se=E1n Farley <sean-freebsd at farley dot org>
PR: bin/81874
Diffstat (limited to 'usr.bin/systat/netstat.c')
-rw-r--r-- | usr.bin/systat/netstat.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/systat/netstat.c b/usr.bin/systat/netstat.c index adb905a..9fe687f 100644 --- a/usr.bin/systat/netstat.c +++ b/usr.bin/systat/netstat.c @@ -143,7 +143,7 @@ closenetstat(w) static const char *miblist[] = { "net.inet.tcp.pcblist", - "net.inet.udp.pcblist" + "net.inet.udp.pcblist" }; struct nlist namelist[] = { @@ -274,9 +274,9 @@ fetchnetstat_sysctl() error("sysctl(%s...) failed", miblist[idx]); continue; } - /* + /* * We currently do no require a consistent pcb list. - * Try to be robust in case of struct size changes + * Try to be robust in case of struct size changes */ cur = ((char *)inpg) + inpg->xig_len; /* There is also a trailing struct xinpgen */ @@ -322,7 +322,7 @@ fetchnetstat_sysctl() if (nports && !checkport(inpcb)) continue; if (idx == 0) /* TCP */ - enter_sysctl(inpcb, &xtp->xt_socket, + enter_sysctl(inpcb, &xtp->xt_socket, xtp->xt_tp.t_state, "tcp"); else /* UDP */ enter_sysctl(inpcb, &xip->xi_socket, 0, "udp"); @@ -574,10 +574,10 @@ inetprint(sa, proto) if (!nflag && port) sp = getservbyport(port, proto); if (sp || port == 0) - snprintf(cp, sizeof(line) - (cp - line), "%.8s", + snprintf(cp, sizeof(line) - (cp - line), "%.8s", sp ? sp->s_name : "*"); else - snprintf(cp, sizeof(line) - (cp - line), "%d", + snprintf(cp, sizeof(line) - (cp - line), "%d", ntohs((u_short)port)); /* pad to full column to clear any garbage */ cp = index(line, '\0'); |