diff options
author | assar <assar@FreeBSD.org> | 2001-06-15 23:55:45 +0000 |
---|---|---|
committer | assar <assar@FreeBSD.org> | 2001-06-15 23:55:45 +0000 |
commit | f5fc9b53400a054604623dad4c679865150873d4 (patch) | |
tree | a01e8cdca4bb3010a22da31eaa18ddcec1fbb82a /usr.bin/netstat/if.c | |
parent | ee746c97f9f42b279e24583560b4f0eaef1e081b (diff) | |
download | FreeBSD-src-f5fc9b53400a054604623dad4c679865150873d4.zip FreeBSD-src-f5fc9b53400a054604623dad4c679865150873d4.tar.gz |
remove warnings
remove superfluous declarations
make things more consistent
Diffstat (limited to 'usr.bin/netstat/if.c')
-rw-r--r-- | usr.bin/netstat/if.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/netstat/if.c b/usr.bin/netstat/if.c index fa491a3..ca88fce 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 ; @@ -132,7 +133,7 @@ bdg_stats(u_long dummy, char *name) /* print bridge statistics */ * Display a formatted value, or a '-' in the same space. */ static void -show_stat(char *fmt, int width, u_long value, short showvalue) +show_stat(const char *fmt, int width, u_long value, short showvalue) { char newfmt[32]; @@ -670,7 +671,7 @@ loop: * Sets a flag to not wait for the alarm. */ static void -catchalarm(int signo) +catchalarm(int signo __unused) { signalled = YES; } |