diff options
author | David Malone <dwmalone@FreeBSD.org> | 2002-09-05 17:06:51 +0000 |
---|---|---|
committer | David Malone <dwmalone@FreeBSD.org> | 2002-09-05 17:06:51 +0000 |
commit | a01e3379df7c510218ec793cf6f288ac4aac6487 (patch) | |
tree | 959e14da31f6b728ead4e7600874639513bcf91a /usr.bin/netstat/mbuf.c | |
parent | 7d224206b4faffde0e74d7f735a72c7dc2a7b809 (diff) | |
download | src-a01e3379df7c510218ec793cf6f288ac4aac6487.tar.gz src-a01e3379df7c510218ec793cf6f288ac4aac6487.zip |
Warns cleanups for netstat:
1) Include arpa/inet.h for ntohs.
2) Constness fixes.
3) Fix shadowing except for "sin" which shouldn't be in scope.
4) Remove register keyword.
5) Add missing initialsers to user defined structs.
5) Make prototype of netname6 globally visable.
6) Use right macros for printing syncache stats (even though entrie isn't
a word).
Notes
Notes:
svn path=/head/; revision=102975
Diffstat (limited to 'usr.bin/netstat/mbuf.c')
-rw-r--r-- | usr.bin/netstat/mbuf.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/netstat/mbuf.c b/usr.bin/netstat/mbuf.c index 0c1fdd40d124..5193071f9db4 100644 --- a/usr.bin/netstat/mbuf.c +++ b/usr.bin/netstat/mbuf.c @@ -56,7 +56,7 @@ typedef int bool; static struct mbtypenames { short mt_type; - char *mt_name; + const char *mt_name; } mbtypenames[] = { { MT_DATA, "data" }, { MT_OOBDATA, "oob data" }, @@ -95,9 +95,9 @@ static struct mbtypenames { * Print mbuf statistics. */ void -mbpr(u_long mbaddr, u_long mbtaddr, u_long nmbcaddr, u_long nmbufaddr, - u_long mblimaddr, u_long cllimaddr, u_long cpusaddr, u_long pgsaddr, - u_long mbpaddr) +mbpr(u_long mbaddr, u_long mbtaddr __unused, u_long nmbcaddr, u_long nmbufaddr, + u_long mblimaddr, u_long cllimaddr, u_long cpusaddr __unused, + u_long pgsaddr, u_long mbpaddr) { int i, j, nmbufs, nmbclusters, page_size, num_objs; u_int mbuf_limit, clust_limit; |