summaryrefslogtreecommitdiff
path: root/src/core/misc.c
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/core/misc.c
parent5ca9287182092530dc206fa1af13fbe19cc357d1 (diff)
downloadirssi-0d4f13d20f304927277ad327c714481bc97de48f.zip
Replace deprecated g_str[n]casecmp with g_ascii_str[n]cmp.
Diffstat (limited to 'src/core/misc.c')
-rw-r--r--src/core/misc.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/core/misc.c b/src/core/misc.c
index 7c930e3f..8d821ecc 100644
--- a/src/core/misc.c
+++ b/src/core/misc.c
@@ -140,7 +140,7 @@ int find_substr(const char *list, const char *item)
ptr = strchr(list, ' ');
if (ptr == NULL) ptr = list+strlen(list);
- if (g_strncasecmp(list, item, ptr-list) == 0 &&
+ if (g_ascii_strncasecmp(list, item, ptr-list) == 0 &&
item[ptr-list] == '\0')
return TRUE;
@@ -174,7 +174,7 @@ int strarray_find(char **array, const char *item)
index = 0;
for (tmp = array; *tmp != NULL; tmp++, index++) {
- if (g_strcasecmp(*tmp, item) == 0)
+ if (g_ascii_strcasecmp(*tmp, item) == 0)
return index;
}
@@ -192,7 +192,7 @@ GSList *gslist_find_string(GSList *list, const char *key)
GSList *gslist_find_icase_string(GSList *list, const char *key)
{
for (list = list; list != NULL; list = list->next)
- if (g_strcasecmp(list->data, key) == 0) return list;
+ if (g_ascii_strcasecmp(list->data, key) == 0) return list;
return NULL;
}
@@ -277,7 +277,7 @@ GList *glist_find_string(GList *list, const char *key)
GList *glist_find_icase_string(GList *list, const char *key)
{
for (list = list; list != NULL; list = list->next)
- if (g_strcasecmp(list->data, key) == 0) return list;
+ if (g_ascii_strcasecmp(list->data, key) == 0) return list;
return NULL;
}
@@ -443,12 +443,12 @@ char *convert_home(const char *path)
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;
}
int g_istr_cmp(gconstpointer v, gconstpointer v2)
{
- return g_strcasecmp((const char *) v, (const char *) v2);
+ return g_ascii_strcasecmp((const char *) v, (const char *) v2);
}
/* a char* hash function from ASU */