diff options
author | hselasky <hselasky@FreeBSD.org> | 2013-08-12 09:15:33 +0000 |
---|---|---|
committer | hselasky <hselasky@FreeBSD.org> | 2013-08-12 09:15:33 +0000 |
commit | f383b32eb4314ff1345eb40d404d3fcf469c78cf (patch) | |
tree | e49ccac929426fc57672fcc2f0a0b772e29d85d1 /tools | |
parent | 2688b2d971383e7f2c91d7283f3442375e4a4315 (diff) | |
download | FreeBSD-src-f383b32eb4314ff1345eb40d404d3fcf469c78cf.zip FreeBSD-src-f383b32eb4314ff1345eb40d404d3fcf469c78cf.tar.gz |
Fix some signed comparison compile warnings.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/tools/usbtest/usb_control_ep_test.c | 4 | ||||
-rw-r--r-- | tools/tools/usbtest/usb_modem_test.c | 4 | ||||
-rw-r--r-- | tools/tools/usbtest/usb_msc_test.c | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/tools/tools/usbtest/usb_control_ep_test.c b/tools/tools/usbtest/usb_control_ep_test.c index d2153c2..87c5fc1 100644 --- a/tools/tools/usbtest/usb_control_ep_test.c +++ b/tools/tools/usbtest/usb_control_ep_test.c @@ -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) ? diff --git a/tools/tools/usbtest/usb_modem_test.c b/tools/tools/usbtest/usb_modem_test.c index 5aec956..74406fc 100644 --- a/tools/tools/usbtest/usb_modem_test.c +++ b/tools/tools/usbtest/usb_modem_test.c @@ -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); diff --git a/tools/tools/usbtest/usb_msc_test.c b/tools/tools/usbtest/usb_msc_test.c index 5ece858..f98b549 100644 --- a/tools/tools/usbtest/usb_msc_test.c +++ b/tools/tools/usbtest/usb_msc_test.c @@ -798,7 +798,7 @@ retry_read_init: } 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); |