From owner-svn-src-head@FreeBSD.ORG Mon Aug 12 09:15:34 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id DB1CE733; Mon, 12 Aug 2013 09:15:34 +0000 (UTC) (envelope-from hselasky@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id ADC7E271C; Mon, 12 Aug 2013 09:15:34 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r7C9FYmJ010140; Mon, 12 Aug 2013 09:15:34 GMT (envelope-from hselasky@svn.freebsd.org) Received: (from hselasky@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r7C9FYDO010135; Mon, 12 Aug 2013 09:15:34 GMT (envelope-from hselasky@svn.freebsd.org) Message-Id: <201308120915.r7C9FYDO010135@svn.freebsd.org> From: Hans Petter Selasky Date: Mon, 12 Aug 2013 09:15:34 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r254241 - head/tools/tools/usbtest X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Aug 2013 09:15:35 -0000 Author: hselasky Date: Mon Aug 12 09:15:33 2013 New Revision: 254241 URL: http://svnweb.freebsd.org/changeset/base/254241 Log: Fix some signed comparison compile warnings. Modified: head/tools/tools/usbtest/usb_control_ep_test.c head/tools/tools/usbtest/usb_modem_test.c head/tools/tools/usbtest/usb_msc_test.c Modified: head/tools/tools/usbtest/usb_control_ep_test.c ============================================================================== --- head/tools/tools/usbtest/usb_control_ep_test.c Mon Aug 12 09:03:34 2013 (r254240) +++ head/tools/tools/usbtest/usb_control_ep_test.c Mon Aug 12 09:15:33 2013 (r254241) @@ -286,7 +286,7 @@ usb_port_reset_test(uint16_t vid, uint16 } 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, ui } 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) ? Modified: head/tools/tools/usbtest/usb_modem_test.c ============================================================================== --- head/tools/tools/usbtest/usb_modem_test.c Mon Aug 12 09:03:34 2013 (r254240) +++ head/tools/tools/usbtest/usb_modem_test.c Mon Aug 12 09:15:33 2013 (r254241) @@ -215,7 +215,7 @@ usb_modem_control_ep_test(struct modem * } 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 } 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); Modified: head/tools/tools/usbtest/usb_msc_test.c ============================================================================== --- head/tools/tools/usbtest/usb_msc_test.c Mon Aug 12 09:03:34 2013 (r254240) +++ head/tools/tools/usbtest/usb_msc_test.c Mon Aug 12 09:15:33 2013 (r254241) @@ -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);