diff options
author | Martin Mathieson <martin.r.mathieson@googlemail.com> | 2011-11-30 16:36:54 +0000 |
---|---|---|
committer | Martin Mathieson <martin.r.mathieson@googlemail.com> | 2011-11-30 16:36:54 +0000 |
commit | 87b389915bcbf3e573faf7a84e24e7b09743bcd9 (patch) | |
tree | e1a1c8df6639911a972e3a7fea31f55ba58c236e | |
parent | bdd62e33aa6af1502cc5c0e99fedf29604c3b455 (diff) |
Use g_ascii_strncasecmp() rather than strncasecmp().
svn path=/trunk/; revision=40052
-rw-r--r-- | tap-expert.c | 8 |
1 files 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; } |