aboutsummaryrefslogtreecommitdiff
path: root/sys/cam/cam_periph.c
diff options
context:
space:
mode:
authorScott Long <scottl@FreeBSD.org>2009-06-22 14:43:48 +0000
committerScott Long <scottl@FreeBSD.org>2009-06-22 14:43:48 +0000
commit571e8e20da7969c14d304855b7e6754e8f2babd8 (patch)
treec56ae7cd3237cacff3d5539ddd7aeeafdf740ec3 /sys/cam/cam_periph.c
parent8896f83a58b5c4ff6288c8f101df25e92a371d83 (diff)
downloadsrc-571e8e20da7969c14d304855b7e6754e8f2babd8.tar.gz
src-571e8e20da7969c14d304855b7e6754e8f2babd8.zip
Change cam_periph_ioctl() to take 'cmd' and a u_long instead of an
int. All of its callers pass in cmd as a u_long, so this has always been a dangerous type demotion. It was spooted by clang/llvm trying to do a type promotion and sign extension within cam_periph_ioctl. Submitted by: rdivacky
Notes
Notes: svn path=/head/; revision=194627
Diffstat (limited to 'sys/cam/cam_periph.c')
-rw-r--r--sys/cam/cam_periph.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/cam/cam_periph.c b/sys/cam/cam_periph.c
index 31bb24c3dbb4..468354ea099d 100644
--- a/sys/cam/cam_periph.c
+++ b/sys/cam/cam_periph.c
@@ -797,7 +797,7 @@ cam_periph_ccbwait(union ccb *ccb)
}
int
-cam_periph_ioctl(struct cam_periph *periph, int cmd, caddr_t addr,
+cam_periph_ioctl(struct cam_periph *periph, u_long cmd, caddr_t addr,
int (*error_routine)(union ccb *ccb,
cam_flags camflags,
u_int32_t sense_flags))