diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2012-09-19 22:37:24 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2012-09-19 22:37:24 +0000 |
commit | 7107f52edae63d3ab1b175277d2e23a46e3986b3 (patch) | |
tree | 4238d74ab068164380c70ec4609e701b22db2b5b /sys/netinet6 | |
parent | fd71aa2d9c2e77b308610a84c5bca25bf4870551 (diff) |
ioctl requests are u_long not int, spotted via clang
ok deraadt@ miod@
Diffstat (limited to 'sys/netinet6')
-rw-r--r-- | sys/netinet6/ip6_mroute.c | 2 | ||||
-rw-r--r-- | sys/netinet6/ip6_mroute.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet6/ip6_mroute.c b/sys/netinet6/ip6_mroute.c index 5d9d40b70b1..762bcff38d5 100644 --- a/sys/netinet6/ip6_mroute.c +++ b/sys/netinet6/ip6_mroute.c @@ -313,7 +313,7 @@ ip6_mrouter_get(int cmd, struct socket *so, struct mbuf **m) * Handle ioctl commands to obtain information from the cache */ int -mrt6_ioctl(int cmd, caddr_t data) +mrt6_ioctl(u_long cmd, caddr_t data) { switch (cmd) { diff --git a/sys/netinet6/ip6_mroute.h b/sys/netinet6/ip6_mroute.h index 4cdacbb18b7..ecfbfe2c18f 100644 --- a/sys/netinet6/ip6_mroute.h +++ b/sys/netinet6/ip6_mroute.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ip6_mroute.h,v 1.7 2006/07/06 02:56:58 brad Exp $ */ +/* $OpenBSD: ip6_mroute.h,v 1.8 2012/09/19 22:37:23 jsg Exp $ */ /* $KAME: ip6_mroute.h,v 1.17 2001/02/10 02:05:52 itojun Exp $ */ /* @@ -272,7 +272,7 @@ int ip6_mrouter_set(int, struct socket *, struct mbuf *); int ip6_mrouter_get(int, struct socket *, struct mbuf **); int ip6_mrouter_done(void); void ip6_mrouter_detach(struct ifnet *); -int mrt6_ioctl(int, caddr_t); +int mrt6_ioctl(u_long, caddr_t); #endif /* _KERNEL */ #endif /* !_NETINET6_IP6_MROUTE_H_ */ |