All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] osmtest -code cleanup -  use strncasecmp()
@ 2009-10-12 18:52 Stan C. Smith
  2009-10-12 21:37 ` Sasha Khapyorsky
  0 siblings, 1 reply; 2+ messages in thread
From: Stan C. Smith @ 2009-10-12 18:52 UTC (permalink / raw)
  To: 'Sasha Khapyorsky'; +Cc: ofw, 'linux-rdma'


Signed-off-by: stan smith <stan.smith@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];

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] osmtest -code cleanup -  use strncasecmp()
  2009-10-12 18:52 [PATCH] osmtest -code cleanup - use strncasecmp() Stan C. Smith
@ 2009-10-12 21:37 ` Sasha Khapyorsky
  0 siblings, 0 replies; 2+ messages in thread
From: Sasha Khapyorsky @ 2009-10-12 21:37 UTC (permalink / raw)
  To: Stan C. Smith; +Cc: ofw, 'linux-rdma'

On 11:52 Mon 12 Oct     , Stan C. Smith wrote:
> 
> Signed-off-by: stan smith <stan.smith@intel.com>

Applied. Thanks.

Sasha

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-10-12 21:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-12 18:52 [PATCH] osmtest -code cleanup - use strncasecmp() Stan C. Smith
2009-10-12 21:37 ` Sasha Khapyorsky

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.