From patchwork Mon Oct 12 17:21:29 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Smith, Stan" X-Patchwork-Id: 53180 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n9CHPer3012393 for ; Mon, 12 Oct 2009 17:25:40 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752735AbZJLRWH (ORCPT ); Mon, 12 Oct 2009 13:22:07 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756034AbZJLRWH (ORCPT ); Mon, 12 Oct 2009 13:22:07 -0400 Received: from mga11.intel.com ([192.55.52.93]:61688 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752735AbZJLRWG (ORCPT ); Mon, 12 Oct 2009 13:22:06 -0400 Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP; 12 Oct 2009 10:08:28 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.44,547,1249282800"; d="scan'208";a="502364465" Received: from scsmith-mobl1.amr.corp.intel.com (HELO scsmithMOBL1) ([10.7.151.219]) by fmsmga002.fm.intel.com with ESMTP; 12 Oct 2009 10:13:13 -0700 From: "Stan C. Smith" To: "'Sasha Khapyorsky'" Cc: , "'linux-rdma'" Subject: [PATCH] osmtest - fix signed unsigned comparisons Date: Mon, 12 Oct 2009 10:21:29 -0700 Message-ID: MIME-Version: 1.0 X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcpLYG9nFJ/q9PgLTR6O+Q4I6qSelw== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org diff --git a/opensm/osmtest/main.c b/opensm/osmtest/main.c index 4bb9f82..588a477 100644 --- a/opensm/osmtest/main.c +++ b/opensm/osmtest/main.c @@ -214,7 +214,7 @@ static void print_all_guids(IN osmtest_t * p_osmt) ib_api_status_t status; uint32_t num_ports = MAX_LOCAL_IBPORTS; ib_port_attr_t attr_array[MAX_LOCAL_IBPORTS]; - int i; + uint32_t i; for (i = 0; i < num_ports; i++) { attr_array[i].num_pkeys = 0; @@ -247,7 +247,7 @@ ib_net64_t get_port_guid(IN osmtest_t * p_osmt, uint64_t port_guid) ib_api_status_t status; uint32_t num_ports = MAX_LOCAL_IBPORTS; ib_port_attr_t attr_array[MAX_LOCAL_IBPORTS]; - int i; + uint32_t i; for (i = 0; i < num_ports; i++) { attr_array[i].num_pkeys = 0; diff --git a/opensm/osmtest/osmtest.c b/opensm/osmtest/osmtest.c index c6ec955..a1457b8 100644 --- a/opensm/osmtest/osmtest.c +++ b/opensm/osmtest/osmtest.c @@ -7237,7 +7237,7 @@ osmtest_bind(IN osmtest_t * p_osmt, ib_api_status_t status; uint32_t num_ports = MAX_LOCAL_IBPORTS; ib_port_attr_t attr_array[MAX_LOCAL_IBPORTS]; - int i; + uint32_t i; OSM_LOG_ENTER(&p_osmt->log);