summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2007-06-13 02:37:00 +0000
committerdelphij <delphij@FreeBSD.org>2007-06-13 02:37:00 +0000
commitd573049b5b7c4752c1199bd92b2e4b5872e66565 (patch)
tree155643488fe81bd36c77bcdad0a3404779c05f75 /usr.bin
parent7ffd3388f66f6a2c0f8658ec3ec4b5d377bc6f68 (diff)
downloadFreeBSD-src-d573049b5b7c4752c1199bd92b2e4b5872e66565.zip
FreeBSD-src-d573049b5b7c4752c1199bd92b2e4b5872e66565.tar.gz
sctp_process_inpcb() wants an offset parameter in size_t,
so define it as what it is expected. This fixes WARNS=3 without NO_WERROR build.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/netstat/sctp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/netstat/sctp.c b/usr.bin/netstat/sctp.c
index 02c1476..01b3342 100644
--- a/usr.bin/netstat/sctp.c
+++ b/usr.bin/netstat/sctp.c
@@ -436,7 +436,7 @@ sctp_protopr(u_long proto,
{
char *buf;
const char *mibvar = "net.inet.sctp.assoclist";
- u_int offset = 0;
+ size_t offset = 0;
size_t len = 0;
struct xsctp_inpcb *xinpcb;
OpenPOWER on IntegriCloud