summaryrefslogtreecommitdiff
path: root/usr.bin/netstat
diff options
context:
space:
mode:
authorJared Yanovich <jaredy@cvs.openbsd.org>2005-03-04 20:22:17 +0000
committerJared Yanovich <jaredy@cvs.openbsd.org>2005-03-04 20:22:17 +0000
commit53b10bfa96755dec80fc1a75cf395c2d0941e334 (patch)
treed8b88cf4c44234b49b1ad2f53178710aa347299f /usr.bin/netstat
parent124f8edad77987b9fb54db0da8e0eb2cb20a6cb5 (diff)
remove unneeded casts of if stats; ok krw miod dhartmei
Diffstat (limited to 'usr.bin/netstat')
-rw-r--r--usr.bin/netstat/if.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/usr.bin/netstat/if.c b/usr.bin/netstat/if.c
index 7b9ebd037a0..e8b63f124e8 100644
--- a/usr.bin/netstat/if.c
+++ b/usr.bin/netstat/if.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if.c,v 1.40 2005/03/02 16:47:56 dhartmei Exp $ */
+/* $OpenBSD: if.c,v 1.41 2005/03/04 20:22:16 jaredy Exp $ */
/* $NetBSD: if.c,v 1.16.4.2 1996/06/07 21:46:46 thorpej Exp $ */
/*
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "from: @(#)if.c 8.2 (Berkeley) 2/21/94";
#else
-static char *rcsid = "$OpenBSD: if.c,v 1.40 2005/03/02 16:47:56 dhartmei Exp $";
+static char *rcsid = "$OpenBSD: if.c,v 1.41 2005/03/04 20:22:16 jaredy Exp $";
#endif
#endif /* not lint */
@@ -510,7 +510,7 @@ loop:
ifnet.if_oerrors - ip->ift_oe,
ifnet.if_collisions - ip->ift_co);
if (dflag)
- printf(" %5d",
+ printf(" %5lu",
ifnet.if_snd.ifq_drops - ip->ift_dr);
}
ip->ift_ip = ifnet.if_ipackets;
@@ -534,17 +534,17 @@ loop:
if (lastif - iftot > 0) {
if (bflag)
printf(" %10lu %8.8s %10lu %5.5s",
- (unsigned long)sum->ift_ib - total->ift_ib, " ",
- (unsigned long)sum->ift_ob - total->ift_ob, " ");
+ sum->ift_ib - total->ift_ib, " ",
+ sum->ift_ob - total->ift_ob, " ");
else
printf(" %8lu %5lu %8lu %5lu %5lu",
- (unsigned long)sum->ift_ip - total->ift_ip,
- (unsigned long)sum->ift_ie - total->ift_ie,
- (unsigned long)sum->ift_op - total->ift_op,
- (unsigned long)sum->ift_oe - total->ift_oe,
- (unsigned long)sum->ift_co - total->ift_co);
+ sum->ift_ip - total->ift_ip,
+ sum->ift_ie - total->ift_ie,
+ sum->ift_op - total->ift_op,
+ sum->ift_oe - total->ift_oe,
+ sum->ift_co - total->ift_co);
if (dflag)
- printf(" %5d", sum->ift_dr - total->ift_dr);
+ printf(" %5lu", sum->ift_dr - total->ift_dr);
}
*total = *sum;
putchar('\n');