summaryrefslogtreecommitdiffstats
path: root/sys/cam/ctl/ctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/cam/ctl/ctl.c')
-rw-r--r--sys/cam/ctl/ctl.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/cam/ctl/ctl.c b/sys/cam/ctl/ctl.c
index bc94d43..d6331b9 100644
--- a/sys/cam/ctl/ctl.c
+++ b/sys/cam/ctl/ctl.c
@@ -916,7 +916,7 @@ ctl_isc_announce_mode(struct ctl_lun *lun, uint32_t initidx,
{
struct ctl_softc *softc = lun->ctl_softc;
union ctl_ha_msg msg;
- int i;
+ u_int i;
if (softc->ha_link != CTL_HA_LINK_ONLINE)
return;
@@ -1284,7 +1284,7 @@ static void
ctl_isc_mode_sync(struct ctl_softc *softc, union ctl_ha_msg *msg, int len)
{
struct ctl_lun *lun;
- int i;
+ u_int i;
uint32_t initidx, targ_lun;
targ_lun = msg->hdr.nexus.targ_mapped_lun;
@@ -6405,7 +6405,7 @@ ctl_mode_sense(struct ctl_scsiio *ctsio)
*/
switch (page_code) {
case SMS_ALL_PAGES_PAGE: {
- int i;
+ u_int i;
page_len = 0;
@@ -6457,7 +6457,7 @@ ctl_mode_sense(struct ctl_scsiio *ctsio)
break;
}
default: {
- int i;
+ u_int i;
page_len = 0;
@@ -12775,7 +12775,7 @@ static void
ctl_datamove_remote_write_cb(struct ctl_ha_dt_req *rq)
{
union ctl_io *io;
- int i;
+ uint32_t i;
io = rq->context;
@@ -12853,7 +12853,7 @@ ctl_datamove_remote_dm_read_cb(union ctl_io *io)
char path_str[64];
struct sbuf sb;
#endif
- int i;
+ uint32_t i;
for (i = 0; i < io->scsiio.kern_sg_entries; i++)
free(io->io_hdr.local_sglist[i].addr, M_CTL);
@@ -13094,7 +13094,7 @@ static void
ctl_datamove_remote_read(union ctl_io *io)
{
int retval;
- int i;
+ uint32_t i;
/*
* This will send an error to the other controller in the case of a
OpenPOWER on IntegriCloud