diff options
author | yar <yar@FreeBSD.org> | 2006-07-28 16:16:40 +0000 |
---|---|---|
committer | yar <yar@FreeBSD.org> | 2006-07-28 16:16:40 +0000 |
commit | 59fab84bab308e4a3eb124a99ce391729ed77614 (patch) | |
tree | 8935d305c75dcfea6a10f10d3ac08de7e612c074 /usr.bin/netstat/ipx.c | |
parent | e1db503689ae54aa3513f73b6e1aa4212ded2641 (diff) | |
download | FreeBSD-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/ipx.c')
-rw-r--r-- | usr.bin/netstat/ipx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/netstat/ipx.c b/usr.bin/netstat/ipx.c index 8b71dbd..b8f50e3 100644 --- a/usr.bin/netstat/ipx.c +++ b/usr.bin/netstat/ipx.c @@ -339,7 +339,7 @@ ipx_erputil(int z, int c) } #endif /* IPXERRORMSGS */ -static struct sockaddr_ipx ssipx = {AF_IPX}; +static struct sockaddr_ipx ssipx = { .sipx_family = AF_IPX }; static char *ipx_prpr(struct ipx_addr *x) |