[ofw] [PATCH] osmtest -code cleanup - use strncasecmp()
Stan C. Smith
stan.smith at intel.com
Mon Oct 12 11:52:24 PDT 2009
Signed-off-by: stan smith <stan.smith at intel.com>
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];
More information about the ofw
mailing list