summaryrefslogtreecommitdiffstats
path: root/usr.bin/systat/netstat.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/systat/netstat.c')
-rw-r--r--usr.bin/systat/netstat.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/systat/netstat.c b/usr.bin/systat/netstat.c
index 2c552ca..c3b4a3b 100644
--- a/usr.bin/systat/netstat.c
+++ b/usr.bin/systat/netstat.c
@@ -110,8 +110,8 @@ struct netinfo {
long ni_lport; /* local port */
struct in_addr ni_faddr; /* foreign address */
long ni_fport; /* foreign port */
- long ni_rcvcc; /* rcv buffer character count */
- long ni_sndcc; /* snd buffer character count */
+ u_int ni_rcvcc; /* rcv buffer character count */
+ u_int ni_sndcc; /* snd buffer character count */
};
TAILQ_HEAD(netinfohead, netinfo) netcb = TAILQ_HEAD_INITIALIZER(netcb);
@@ -450,8 +450,8 @@ shownetstat()
p->ni_flags &= ~NIF_FACHG;
}
mvwaddstr(wnd, p->ni_line, PROTO, p->ni_proto);
- mvwprintw(wnd, p->ni_line, RCVCC, "%6d", p->ni_rcvcc);
- mvwprintw(wnd, p->ni_line, SNDCC, "%6d", p->ni_sndcc);
+ mvwprintw(wnd, p->ni_line, RCVCC, "%6u", p->ni_rcvcc);
+ mvwprintw(wnd, p->ni_line, SNDCC, "%6u", p->ni_sndcc);
if (streq(p->ni_proto, "tcp")) {
if (p->ni_state < 0 || p->ni_state >= TCP_NSTATES)
mvwprintw(wnd, p->ni_line, STATE, "%d",
OpenPOWER on IntegriCloud