summaryrefslogtreecommitdiffstats
path: root/sys/dev/twe/twe.c
diff options
context:
space:
mode:
authorrdivacky <rdivacky@FreeBSD.org>2009-09-22 16:28:07 +0000
committerrdivacky <rdivacky@FreeBSD.org>2009-09-22 16:28:07 +0000
commit28435a4f3664401249e27c20b6d9632cd427cef7 (patch)
treec820078f74f6210e3e18786d7a625559414e2c04 /sys/dev/twe/twe.c
parentf3b70d313ab348c74bf01a805b66dcbfc8a54965 (diff)
downloadFreeBSD-src-28435a4f3664401249e27c20b6d9632cd427cef7.zip
FreeBSD-src-28435a4f3664401249e27c20b6d9632cd427cef7.tar.gz
Change the command argument to ioctl routines to u_long to avoid
truncating the command to 32bit on 64bit archs where int is 32bit (ie. amd64). Approved by: scottl Approved by: ed (mentor, implicit)
Diffstat (limited to 'sys/dev/twe/twe.c')
-rw-r--r--sys/dev/twe/twe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/twe/twe.c b/sys/dev/twe/twe.c
index 59b5027..90dfa2e 100644
--- a/sys/dev/twe/twe.c
+++ b/sys/dev/twe/twe.c
@@ -487,7 +487,7 @@ twe_dump_blocks(struct twe_softc *sc, int unit, u_int32_t lba, void *data, int n
* Handle controller-specific control operations.
*/
int
-twe_ioctl(struct twe_softc *sc, int ioctlcmd, void *addr)
+twe_ioctl(struct twe_softc *sc, u_long ioctlcmd, void *addr)
{
struct twe_usercommand *tu = (struct twe_usercommand *)addr;
struct twe_paramcommand *tp = (struct twe_paramcommand *)addr;
OpenPOWER on IntegriCloud