diff options
author | assar <assar@FreeBSD.org> | 2001-06-15 01:53:05 +0000 |
---|---|---|
committer | assar <assar@FreeBSD.org> | 2001-06-15 01:53:05 +0000 |
commit | 9e34fe7efd02802c8741141cf670713ba1ade2e5 (patch) | |
tree | 666b4e33ec4d151eeee57b69cec4f8ec59d4c008 /usr.bin/netstat/if.c | |
parent | 376d88fdd4c1aa428ae9df56f22f7e40c7c19b0f (diff) | |
download | FreeBSD-src-9e34fe7efd02802c8741141cf670713ba1ade2e5.zip FreeBSD-src-9e34fe7efd02802c8741141cf670713ba1ade2e5.tar.gz |
remove most of the warnings
Diffstat (limited to 'usr.bin/netstat/if.c')
-rw-r--r-- | usr.bin/netstat/if.c | 23 |
1 files changed, 7 insertions, 16 deletions
diff --git a/usr.bin/netstat/if.c b/usr.bin/netstat/if.c index 26e3ec0..150d2f0 100644 --- a/usr.bin/netstat/if.c +++ b/usr.bin/netstat/if.c @@ -85,8 +85,9 @@ static char ntop_buf[INET6_ADDRSTRLEN]; /* for inet_ntop() */ static int bdg_done; #endif +/* print bridge statistics */ void -bdg_stats(u_long dummy, char *name) /* print bridge statistics */ +bdg_stats(u_long dummy __unused, char *name, int af __unused) { int i; size_t slen ; @@ -131,12 +132,8 @@ bdg_stats(u_long dummy, char *name) /* print bridge statistics */ /* * Display a formatted value, or a '-' in the same space. */ -void -show_stat(fmt, width, value, showvalue) - char *fmt; - int width; - u_long value; - short showvalue; +static void +show_stat(const char *fmt, int width, u_long value, short showvalue) { char newfmt[32]; @@ -156,10 +153,7 @@ show_stat(fmt, width, value, showvalue) * Print a description of the network interfaces. */ void -intpr(interval, ifnetaddr, pfunc) - int interval; - u_long ifnetaddr; - void (*pfunc)(char *); +intpr(int interval, u_long ifnetaddr, void (*pfunc)(char *)) { struct ifnet ifnet; struct ifnethead ifnethead; @@ -514,9 +508,7 @@ u_char signalled; /* set if alarm goes off "early" */ * XXX - should be rewritten to use ifmib(4). */ static void -sidewaysintpr(interval, off) - unsigned interval; - u_long off; +sidewaysintpr(unsigned interval, u_long off) { struct ifnet ifnet; u_long firstifnet; @@ -679,8 +671,7 @@ loop: * Sets a flag to not wait for the alarm. */ static void -catchalarm(signo) - int signo; +catchalarm(int signo __unused) { signalled = YES; } |