cam: unsign some types to match their definitions and avoid overflows.
authorpfg <pfg@FreeBSD.org>
Wed, 27 Apr 2016 15:35:05 +0000 (15:35 +0000)
committerpfg <pfg@FreeBSD.org>
Wed, 27 Apr 2016 15:35:05 +0000 (15:35 +0000)
commitfe28ec8024a7da09961b3b7d4dc1e205b1b35bb1
tree8c9170ca44b9e7bcaed966b26ad6dd55f91a15c8
parent30f8ed214099a4949fb1161f8c38df10b35310cb
cam: unsign some types to match their definitions and avoid overflows.

numpatterns is u_int.

ctl:
CTL_NUM_MODE_PAGES comes from sizeof().
In struct:ctl_scsiio, kern_sg_entries is uint32_t.

MFC after: 2 weeks
sys/cam/cam_xpt.c
sys/cam/ctl/ctl.c