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/dev/pci | |
parent | fd71aa2d9c2e77b308610a84c5bca25bf4870551 (diff) |
ioctl requests are u_long not int, spotted via clang
ok deraadt@ miod@
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/if_san_common.c | 6 | ||||
-rw-r--r-- | sys/dev/pci/if_san_common.h | 6 | ||||
-rw-r--r-- | sys/dev/pci/if_san_xilinx.c | 6 |
3 files changed, 9 insertions, 9 deletions
diff --git a/sys/dev/pci/if_san_common.c b/sys/dev/pci/if_san_common.c index 77f3ca913da..63f00567862 100644 --- a/sys/dev/pci/if_san_common.c +++ b/sys/dev/pci/if_san_common.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_san_common.c,v 1.13 2009/02/08 20:07:44 chl Exp $ */ +/* $OpenBSD: if_san_common.c,v 1.14 2012/09/19 22:37:23 jsg Exp $ */ /*- * Copyright (c) 2001-2004 Sangoma Technologies (SAN) @@ -80,7 +80,7 @@ static int shutdown(sdla_t *card); #endif /* Miscellaneous functions */ -static int wan_ioctl(struct ifnet*, int, struct ifreq *); +static int wan_ioctl(struct ifnet*, u_long, struct ifreq *); static int sdla_isr(void *); static void release_hw(sdla_t *card); @@ -258,7 +258,7 @@ release_hw(sdla_t *card) */ static int -wan_ioctl(struct ifnet *ifp, int cmd, struct ifreq *ifr) +wan_ioctl(struct ifnet *ifp, u_long cmd, struct ifreq *ifr) { wanpipe_common_t *common = WAN_IFP_TO_COMMON(ifp); int err; diff --git a/sys/dev/pci/if_san_common.h b/sys/dev/pci/if_san_common.h index 762969f42fd..59d19a882f1 100644 --- a/sys/dev/pci/if_san_common.h +++ b/sys/dev/pci/if_san_common.h @@ -1,4 +1,4 @@ -/* $OpenBSD: if_san_common.h,v 1.8 2005/11/08 20:23:42 canacar Exp $ */ +/* $OpenBSD: if_san_common.h,v 1.9 2012/09/19 22:37:23 jsg Exp $ */ /*- * Copyright (c) 2001-2004 Sangoma Technologies (SAN) @@ -386,7 +386,7 @@ typedef struct sdla { int(*iface_up) (struct ifnet*); int(*iface_down) (struct ifnet*); int(*iface_send) (struct mbuf* skb, struct ifnet*); - int(*iface_ioctl) (struct ifnet*, int, struct ifreq*); + int(*iface_ioctl) (struct ifnet*, u_long, struct ifreq*); unsigned long state_tick; /* link state timestamp */ unsigned long in_isr; /* interrupt-in-service flag */ @@ -395,7 +395,7 @@ typedef struct sdla { void(*isr)(struct sdla*); /* interrupt service routine */ void(*poll)(struct sdla*); /* polling routine */ int(*exec)(struct sdla*, void*, void*); - int(*ioctl) (struct ifnet*, int, struct ifreq*); + int(*ioctl) (struct ifnet*, u_long, struct ifreq*); union { sdla_xilinx_t xilinx; diff --git a/sys/dev/pci/if_san_xilinx.c b/sys/dev/pci/if_san_xilinx.c index 317e78f9f9f..01cfe836e9c 100644 --- a/sys/dev/pci/if_san_xilinx.c +++ b/sys/dev/pci/if_san_xilinx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_san_xilinx.c,v 1.26 2011/09/18 11:17:57 miod Exp $ */ +/* $OpenBSD: if_san_xilinx.c,v 1.27 2012/09/19 22:37:23 jsg Exp $ */ /*- * Copyright (c) 2001-2004 Sangoma Technologies (SAN) @@ -206,7 +206,7 @@ static int wan_xilinx_release(sdla_t*, struct ifnet *); /* Network device interface */ static int wan_xilinx_up(struct ifnet *); static int wan_xilinx_down(struct ifnet *); -static int wan_xilinx_ioctl(struct ifnet *, int cmd, struct ifreq *); +static int wan_xilinx_ioctl(struct ifnet *, u_long cmd, struct ifreq *); static int wan_xilinx_send(struct mbuf *, struct ifnet *); static void handle_front_end_state(void *); @@ -668,7 +668,7 @@ wan_xilinx_dma_tx_try: } static int -wan_xilinx_ioctl(struct ifnet *ifp, int cmd, struct ifreq *ifr) +wan_xilinx_ioctl(struct ifnet *ifp, u_long cmd, struct ifreq *ifr) { xilinx_softc_t *sc = (xilinx_softc_t *)ifp->if_softc; struct mbuf *m; |