Fix some signed comparison compile warnings.

This commit is contained in:
Hans Petter Selasky 2013-08-12 09:15:33 +00:00
parent fcd51bb4fa
commit f7b25aedae
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=254241
3 changed files with 5 additions and 5 deletions

View File

@ -286,7 +286,7 @@ usb_port_reset_test(uint16_t vid, uint16_t pid, uint32_t duration)
}
timersub(&sub_tv, &ref_tv, &res_tv);
if ((res_tv.tv_sec < 0) || (res_tv.tv_sec >= duration))
if ((res_tv.tv_sec < 0) || (res_tv.tv_sec >= (int)duration))
break;
if (libusb20_dev_reset(pdev)) {
@ -445,7 +445,7 @@ usb_suspend_resume_test(uint16_t vid, uint16_t pid, uint32_t duration)
}
timersub(&sub_tv, &ref_tv, &res_tv);
if ((res_tv.tv_sec < 0) || (res_tv.tv_sec >= duration))
if ((res_tv.tv_sec < 0) || (res_tv.tv_sec >= (int)duration))
break;
error = libusb20_dev_set_power_mode(pdev, (iter & 1) ?

View File

@ -215,7 +215,7 @@ usb_modem_control_ep_test(struct modem *p, uint32_t duration, uint8_t flag)
}
timersub(&sub_tv, &ref_tv, &res_tv);
if ((res_tv.tv_sec < 0) || (res_tv.tv_sec >= duration))
if ((res_tv.tv_sec < 0) || (res_tv.tv_sec >= (int)duration))
break;
LIBUSB20_INIT(LIBUSB20_CONTROL_SETUP, &setup);
@ -333,7 +333,7 @@ usb_modem_data_stress_test(struct modem *p, uint32_t duration)
}
timersub(&sub_tv, &ref_tv, &res_tv);
if ((res_tv.tv_sec < 0) || (res_tv.tv_sec >= duration))
if ((res_tv.tv_sec < 0) || (res_tv.tv_sec >= (int)duration))
break;
libusb20_dev_process(p->usb_dev);

View File

@ -798,7 +798,7 @@ usb_msc_test(struct usb_msc_params *p)
}
timersub(&sub_tv, &ref_tv, &res_tv);
if ((res_tv.tv_sec < 0) || (res_tv.tv_sec >= p->duration))
if ((res_tv.tv_sec < 0) || (res_tv.tv_sec >= (int)p->duration))
break;
do_io_test(p, lun, lba_max, buffer, reference);