summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/levels.c2
-rw-r--r--src/core/log.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/core/levels.c b/src/core/levels.c
index 587e1432..4345d4b6 100644
--- a/src/core/levels.c
+++ b/src/core/levels.c
@@ -65,7 +65,7 @@ int level_get(const char *level)
/* partial match allowed, as long as it's the only one that matches */
match = 0;
for (n = 0; levels[n] != NULL; n++) {
- if (g_strncasecmp(levels[n], level, len) == 0) {
+ if (g_ascii_strncasecmp(levels[n], level, len) == 0) {
if ((int)strlen(levels[n]) == len) {
/* full match */
return 1L << n;
diff --git a/src/core/log.c b/src/core/log.c
index fb035c3b..bc0e869f 100644
--- a/src/core/log.c
+++ b/src/core/log.c
@@ -55,7 +55,7 @@ static int log_item_str2type(const char *type)
int n;
for (n = 0; log_item_types[n] != NULL; n++) {
- if (g_strcasecmp(log_item_types[n], type) == 0)
+ if (g_ascii_strcasecmp(log_item_types[n], type) == 0)
return n;
}