From 87b389915bcbf3e573faf7a84e24e7b09743bcd9 Mon Sep 17 00:00:00 2001 From: Martin Mathieson Date: Wed, 30 Nov 2011 16:36:54 +0000 Subject: Use g_ascii_strncasecmp() rather than strncasecmp(). svn path=/trunk/; revision=40052 --- tap-expert.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tap-expert.c b/tap-expert.c index dc085539f1..17c4a7e3f1 100644 --- a/tap-expert.c +++ b/tap-expert.c @@ -214,17 +214,17 @@ static void expert_stat_init(const char *optarg, void *userdata _U_) /* First (optional) arg is Error|Warn|Note|Chat */ if (args != NULL) { - if (strncasecmp(args, ",error", 6) == 0) { + if (g_ascii_strncasecmp(args, ",error", 6) == 0) { lowest_report_level = error_level; args += 6; } - else if (strncasecmp(args, ",warn", 5) == 0) { + else if (g_ascii_strncasecmp(args, ",warn", 5) == 0) { lowest_report_level = warn_level; args += 5; - } else if (strncasecmp(args, ",note", 5) == 0) { + } else if (g_ascii_strncasecmp(args, ",note", 5) == 0) { lowest_report_level = note_level; args += 5; - } else if (strncasecmp(args, ",chat", 5) == 0) { + } else if (g_ascii_strncasecmp(args, ",chat", 5) == 0) { lowest_report_level = chat_level; args += 5; } -- cgit v1.2.3