diff mbox

osmtest -code cleanup - use strncasecmp()

Message ID 5BD92B127714460C9672BD9230B397A0@amr.corp.intel.com (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Smith, Stan Oct. 12, 2009, 6:52 p.m. UTC
None
diff mbox

Patch

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 <complib/cl_debug.h>
 #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];