aboutsummaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>2007-02-27 05:10:36 +0000
committerBruce Evans <bde@FreeBSD.org>2007-02-27 05:10:36 +0000
commitb6c86f4b1ea6f4daaa99a9c237290114ebb525d2 (patch)
treef47130832fbe0d1af30ae1ffe1542214eddafa4e /usr.bin
parent93547b07b9e4fecb984a3e269f269e3245c9ad55 (diff)
Notes
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/netstat/if.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/usr.bin/netstat/if.c b/usr.bin/netstat/if.c
index 280e1bf9cec3..dc280eb97aae 100644
--- a/usr.bin/netstat/if.c
+++ b/usr.bin/netstat/if.c
@@ -74,8 +74,8 @@ __FBSDID("$FreeBSD$");
#define YES 1
#define NO 0
-static void sidewaysintpr (u_int, u_long);
-static void catchalarm (int);
+static void sidewaysintpr(int, u_long);
+static void catchalarm(int);
#ifdef INET6
static char ntop_buf[INET6_ADDRSTRLEN]; /* for inet_ntop() */
@@ -171,7 +171,7 @@ show_stat(const char *fmt, int width, u_long value, short showvalue)
* Print a description of the network interfaces.
*/
void
-intpr(int _interval, u_long ifnetaddr, void (*pfunc)(char *))
+intpr(int interval1, u_long ifnetaddr, void (*pfunc)(char *))
{
struct ifnet ifnet;
struct ifnethead ifnethead;
@@ -206,8 +206,8 @@ intpr(int _interval, u_long ifnetaddr, void (*pfunc)(char *))
printf("ifnet: symbol not defined\n");
return;
}
- if (_interval) {
- sidewaysintpr((unsigned)_interval, ifnetaddr);
+ if (interval1) {
+ sidewaysintpr(interval1, ifnetaddr);
return;
}
if (kread(ifnetaddr, (char *)&ifnethead, sizeof ifnethead))
@@ -520,13 +520,13 @@ u_char signalled; /* set if alarm goes off "early" */
/*
* Print a running summary of interface statistics.
- * Repeat display every interval seconds, showing statistics
- * collected over that interval. Assumes that interval is non-zero.
+ * Repeat display every interval1 seconds, showing statistics
+ * collected over that interval. Assumes that interval1 is non-zero.
* First line printed at top of screen is always cumulative.
* XXX - should be rewritten to use ifmib(4).
*/
static void
-sidewaysintpr(unsigned interval1, u_long off)
+sidewaysintpr(int interval1, u_long off)
{
struct ifnet ifnet;
u_long firstifnet;