diff options
author | Roman Divacky <rdivacky@FreeBSD.org> | 2009-09-22 16:28:07 +0000 |
---|---|---|
committer | Roman Divacky <rdivacky@FreeBSD.org> | 2009-09-22 16:28:07 +0000 |
commit | fd3c9374ff6521682269aa76d76ccb015c579db7 (patch) | |
tree | c820078f74f6210e3e18786d7a625559414e2c04 /sys/dev/twa/tw_cl_io.c | |
parent | e0a770a01dedf6fc20cc8c9c1c95997d3cb8a2b2 (diff) | |
download | src-fd3c9374ff6521682269aa76d76ccb015c579db7.tar.gz src-fd3c9374ff6521682269aa76d76ccb015c579db7.zip |
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)
Notes
Notes:
svn path=/head/; revision=197409
Diffstat (limited to 'sys/dev/twa/tw_cl_io.c')
-rw-r--r-- | sys/dev/twa/tw_cl_io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/twa/tw_cl_io.c b/sys/dev/twa/tw_cl_io.c index 162b1ea326f3..6fea17522360 100644 --- a/sys/dev/twa/tw_cl_io.c +++ b/sys/dev/twa/tw_cl_io.c @@ -396,7 +396,7 @@ tw_cl_fw_passthru(struct tw_cl_ctlr_handle *ctlr_handle, * non-zero-- failure */ TW_INT32 -tw_cl_ioctl(struct tw_cl_ctlr_handle *ctlr_handle, TW_INT32 cmd, TW_VOID *buf) +tw_cl_ioctl(struct tw_cl_ctlr_handle *ctlr_handle, u_long cmd, TW_VOID *buf) { struct tw_cli_ctlr_context *ctlr = (struct tw_cli_ctlr_context *)(ctlr_handle->cl_ctlr_ctxt); |