summaryrefslogtreecommitdiff
path: root/src/lib-config
diff options
context:
space:
mode:
authorDavid Hill <dhill@conformal.com>2014-06-10 12:06:19 -0400
committerDavid Hill <dhill@conformal.com>2014-06-10 12:06:19 -0400
commit0d4f13d20f304927277ad327c714481bc97de48f (patch)
tree0cea195e9fae20e3e10d48c5c829b0e894bdd492 /src/lib-config
parent5ca9287182092530dc206fa1af13fbe19cc357d1 (diff)
downloadirssi-0d4f13d20f304927277ad327c714481bc97de48f.zip
Replace deprecated g_str[n]casecmp with g_ascii_str[n]cmp.
Diffstat (limited to 'src/lib-config')
-rw-r--r--src/lib-config/get.c2
-rw-r--r--src/lib-config/parse.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib-config/get.c b/src/lib-config/get.c
index c0f6a3dd..2f1e90e1 100644
--- a/src/lib-config/get.c
+++ b/src/lib-config/get.c
@@ -31,7 +31,7 @@ CONFIG_NODE *config_node_find(CONFIG_NODE *node, const char *key)
for (tmp = node->value; tmp != NULL; tmp = tmp->next) {
CONFIG_NODE *node = tmp->data;
- if (node->key != NULL && g_strcasecmp(node->key, key) == 0)
+ if (node->key != NULL && g_ascii_strcasecmp(node->key, key) == 0)
return node;
}
diff --git a/src/lib-config/parse.c b/src/lib-config/parse.c
index 22832c07..1b20195a 100644
--- a/src/lib-config/parse.c
+++ b/src/lib-config/parse.c
@@ -22,7 +22,7 @@
static int g_istr_equal(gconstpointer v, gconstpointer v2)
{
- return g_strcasecmp((const char *) v, (const char *) v2) == 0;
+ return g_ascii_strcasecmp((const char *) v, (const char *) v2) == 0;
}
/* a char* hash function from ASU */