summaryrefslogtreecommitdiffstats
path: root/usr.bin/netstat/inet.c
diff options
context:
space:
mode:
authoryar <yar@FreeBSD.org>2006-07-28 16:16:40 +0000
committeryar <yar@FreeBSD.org>2006-07-28 16:16:40 +0000
commit59fab84bab308e4a3eb124a99ce391729ed77614 (patch)
tree8935d305c75dcfea6a10f10d3ac08de7e612c074 /usr.bin/netstat/inet.c
parente1db503689ae54aa3513f73b6e1aa4212ded2641 (diff)
downloadFreeBSD-src-59fab84bab308e4a3eb124a99ce391729ed77614.zip
FreeBSD-src-59fab84bab308e4a3eb124a99ce391729ed77614.tar.gz
- Achieve WARNS=3 by using sparse initializers or avoiding initializers at all.
- Fix a nlist initialization: it should be terminated by a NULL entry. - Constify. - Catch an unused parameter. Tested on: i386 amd64 ia64
Diffstat (limited to 'usr.bin/netstat/inet.c')
-rw-r--r--usr.bin/netstat/inet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/netstat/inet.c b/usr.bin/netstat/inet.c
index d168386..6475a39 100644
--- a/usr.bin/netstat/inet.c
+++ b/usr.bin/netstat/inet.c
@@ -532,7 +532,7 @@ udp_stats(u_long off __unused, const char *name, int af1 __unused)
* Dump CARP statistics structure.
*/
void
-carp_stats(u_long off, const char *name, int af1 __unused)
+carp_stats(u_long off __unused, const char *name, int af1 __unused)
{
struct carpstats carpstat, zerostat;
size_t len = sizeof(struct carpstats);
OpenPOWER on IntegriCloud