From patchwork Mon Oct 12 18:52:24 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Smith, Stan" X-Patchwork-Id: 53185 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 n9CIv1b4027661 for ; Mon, 12 Oct 2009 18:57:02 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751902AbZJLSxB (ORCPT ); Mon, 12 Oct 2009 14:53:01 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756888AbZJLSxB (ORCPT ); Mon, 12 Oct 2009 14:53:01 -0400 Received: from mga03.intel.com ([143.182.124.21]:53097 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751902AbZJLSxA (ORCPT ); Mon, 12 Oct 2009 14:53:00 -0400 Received: from azsmga001.ch.intel.com ([10.2.17.19]) by azsmga101.ch.intel.com with ESMTP; 12 Oct 2009 11:52:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.44,547,1249282800"; d="scan'208";a="198030802" Received: from scsmith-mobl1.amr.corp.intel.com (HELO scsmithMOBL1) ([10.7.151.219]) by azsmga001.ch.intel.com with ESMTP; 12 Oct 2009 11:52:23 -0700 From: "Stan C. Smith" To: "'Sasha Khapyorsky'" Cc: , "'linux-rdma'" Subject: [PATCH] osmtest -code cleanup - use strncasecmp() Date: Mon, 12 Oct 2009 11:52:24 -0700 Message-ID: <5BD92B127714460C9672BD9230B397A0@amr.corp.intel.com> MIME-Version: 1.0 X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcpLbSMQZwp4buHSQ/q/U0LrkRxGKA== 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/osmtest.c b/opensm/osmtest/osmtest.c index c6ec955..423e836 100644 --- a/opensm/osmtest/osmtest.c +++ b/opensm/osmtest/osmtest.c @@ -59,10 +59,6 @@ #include #include "osmtest.h" -#ifndef __WIN__ -#define strnicmp strncasecmp -#endif - #define POOL_MIN_ITEMS 64 #define MAX_LOCAL_IBPORTS 64 @@ -6169,7 +6165,7 @@ static const osmtest_token_t *str_get_token(IN char *const p_str) p_tok = &token_array[index]; while (p_tok->val != OSMTEST_TOKEN_UNKNOWN) { - if (strnicmp(p_str, p_tok->str, p_tok->str_size) == 0) + if (strncasecmp(p_str, p_tok->str, p_tok->str_size) == 0) return (p_tok); p_tok = &token_array[++index];