summaryrefslogtreecommitdiff
path: root/src/fe-common/core/keyboard.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/fe-common/core/keyboard.c
parent5ca9287182092530dc206fa1af13fbe19cc357d1 (diff)
downloadirssi-0d4f13d20f304927277ad327c714481bc97de48f.zip
Replace deprecated g_str[n]casecmp with g_ascii_str[n]cmp.
Diffstat (limited to 'src/fe-common/core/keyboard.c')
-rw-r--r--src/fe-common/core/keyboard.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fe-common/core/keyboard.c b/src/fe-common/core/keyboard.c
index 49bcd399..94c6bfd7 100644
--- a/src/fe-common/core/keyboard.c
+++ b/src/fe-common/core/keyboard.c
@@ -164,7 +164,7 @@ KEYINFO_REC *key_info_find(const char *id)
for (tmp = keyinfos; tmp != NULL; tmp = tmp->next) {
KEYINFO_REC *rec = tmp->data;
- if (g_strcasecmp(rec->id, id) == 0)
+ if (g_ascii_strcasecmp(rec->id, id) == 0)
return rec;
}
@@ -661,7 +661,7 @@ static void cmd_show_keys(const char *searchkey, int full)
for (key = rec->keys; key != NULL; key = key->next) {
KEY_REC *rec = key->data;
- if ((len == 0 || g_strncasecmp(rec->key, searchkey, len) == 0) &&
+ if ((len == 0 || g_ascii_strncasecmp(rec->key, searchkey, len) == 0) &&
(!full || rec->key[len] == '\0')) {
printformat(NULL, NULL, MSGLEVEL_CLIENTCRAP, TXT_BIND_LIST,
rec->key, rec->info->id, rec->data == NULL ? "" : rec->data);
@@ -739,7 +739,7 @@ static GList *completion_get_keyinfos(const char *info)
for (tmp = keyinfos; tmp != NULL; tmp = tmp->next) {
KEYINFO_REC *rec = tmp->data;
- if (g_strncasecmp(rec->id, info, len) == 0)
+ if (g_ascii_strncasecmp(rec->id, info, len) == 0)
list = g_list_append(list, g_strdup(rec->id));
}