diff options
author | bde <bde@FreeBSD.org> | 2007-02-27 05:10:36 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 2007-02-27 05:10:36 +0000 |
commit | a94865a5ece16616f8b180b20917c4761c44304b (patch) | |
tree | f47130832fbe0d1af30ae1ffe1542214eddafa4e /usr.bin/netstat | |
parent | 3ee0d09a443f80fc57dc791114562e66b6856c71 (diff) | |
download | FreeBSD-src-a94865a5ece16616f8b180b20917c4761c44304b.zip FreeBSD-src-a94865a5ece16616f8b180b20917c4761c44304b.tar.gz |
Fixed some style bugs (whitespace lossage for removal of __P(()), and
lots of naming and typing errors involving `interval').
Diffstat (limited to 'usr.bin/netstat')
-rw-r--r-- | usr.bin/netstat/if.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/usr.bin/netstat/if.c b/usr.bin/netstat/if.c index 280e1bf..dc280eb 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; |