Use g_ascii_str{,n}casecmp for case insensitive comparison with

ascii only strings.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4738 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Emanuele Giaquinta 2008-03-09 12:01:16 +00:00 committed by exg
commit 7df46597e1
22 changed files with 63 additions and 63 deletions

View file

@ -69,12 +69,12 @@ static void cmd_window_scroll(const char *data)
GUI_WINDOW_REC *gui;
gui = WINDOW_GUI(active_win);
if (g_strcasecmp(data, "default") == 0) {
if (g_ascii_strcasecmp(data, "default") == 0) {
gui->use_scroll = FALSE;
} else if (g_strcasecmp(data, "on") == 0) {
} else if (g_ascii_strcasecmp(data, "on") == 0) {
gui->use_scroll = TRUE;
gui->scroll = TRUE;
} else if (g_strcasecmp(data, "off") == 0) {
} else if (g_ascii_strcasecmp(data, "off") == 0) {
gui->use_scroll = TRUE;
gui->scroll = FALSE;
} else if (*data != '\0') {