Replace deprecated g_str[n]casecmp with g_ascii_str[n]cmp.

This commit is contained in:
David Hill 2014-06-10 12:06:19 -04:00
commit 0d4f13d20f
63 changed files with 168 additions and 160 deletions

View file

@ -194,11 +194,11 @@ static void show_help(const char *data)
items = 0;
}
if (last != NULL && g_strcasecmp(rec->cmd, last->cmd) == 0)
if (last != NULL && g_ascii_strcasecmp(rec->cmd, last->cmd) == 0)
continue; /* don't display same command twice */
if ((int)strlen(rec->cmd) >= findlen &&
g_strncasecmp(rec->cmd, data, findlen) == 0) {
g_ascii_strncasecmp(rec->cmd, data, findlen) == 0) {
if (rec->cmd[findlen] == '\0') {
fullmatch = TRUE;
found = TRUE;