aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/mptutil
diff options
context:
space:
mode:
authorKenneth D. Merry <ken@FreeBSD.org>2012-01-26 18:09:28 +0000
committerKenneth D. Merry <ken@FreeBSD.org>2012-01-26 18:09:28 +0000
commite6bd5983ca514f0461cbb095afb3d984ccfedb8f (patch)
treec2ad89d0753322faebda9103d7061f924086269d /usr.sbin/mptutil
parentab6fe159c86f10dcfeb3c357cbe3326613350f21 (diff)
downloadsrc-e6bd5983ca514f0461cbb095afb3d984ccfedb8f.tar.gz
src-e6bd5983ca514f0461cbb095afb3d984ccfedb8f.zip
Notes
Diffstat (limited to 'usr.sbin/mptutil')
-rw-r--r--usr.sbin/mptutil/mpt_cam.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/mptutil/mpt_cam.c b/usr.sbin/mptutil/mpt_cam.c
index 3adbed8dd1c1..6a8ff071376c 100644
--- a/usr.sbin/mptutil/mpt_cam.c
+++ b/usr.sbin/mptutil/mpt_cam.c
@@ -277,7 +277,7 @@ fetch_scsi_capacity(struct cam_device *dev, struct mpt_standalone_disk *disk)
sizeof(struct ccb_hdr));
scsi_read_capacity_16(&ccb->csio, 1, NULL, MSG_SIMPLE_Q_TAG, 0, 0, 0,
- &rcaplong, SSD_FULL_SIZE, 5000);
+ (uint8_t *)&rcaplong, sizeof(rcaplong), SSD_FULL_SIZE, 5000);
/* Disable freezing the device queue */
ccb->ccb_h.flags |= CAM_DEV_QFRZDIS;