diff options
author | Emanuele Giaquinta <exg@irssi.org> | 2008-03-09 12:01:16 +0000 |
---|---|---|
committer | exg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2008-03-09 12:01:16 +0000 |
commit | 7df46597e17ff7af4a660ab47673fe2cabc91db6 (patch) | |
tree | 2e2abd9c8e4de4e7311c0506119142f62a78a2f1 /src/perl/common | |
parent | 496d82ac4843b3dcf8fe64c216470f41f91120d9 (diff) | |
download | irssi-7df46597e17ff7af4a660ab47673fe2cabc91db6.zip |
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
Diffstat (limited to 'src/perl/common')
-rw-r--r-- | src/perl/common/Expando.xs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/perl/common/Expando.xs b/src/perl/common/Expando.xs index 08f5c202..5bf27bec 100644 --- a/src/perl/common/Expando.xs +++ b/src/perl/common/Expando.xs @@ -119,15 +119,15 @@ void expando_signals_add_hash(const char *key, SV *signals) SV *argsv = HeVAL(he); argstr = SvPV(argsv, PL_na); - if (strcasecmp(argstr, "none") == 0) + if (g_ascii_strcasecmp(argstr, "none") == 0) arg = EXPANDO_ARG_NONE; - else if (strcasecmp(argstr, "server") == 0) + else if (g_ascii_strcasecmp(argstr, "server") == 0) arg = EXPANDO_ARG_SERVER; - else if (strcasecmp(argstr, "window") == 0) + else if (g_ascii_strcasecmp(argstr, "window") == 0) arg = EXPANDO_ARG_WINDOW; - else if (strcasecmp(argstr, "windowitem") == 0) + else if (g_ascii_strcasecmp(argstr, "windowitem") == 0) arg = EXPANDO_ARG_WINDOW_ITEM; - else if (strcasecmp(argstr, "never") == 0) + else if (g_ascii_strcasecmp(argstr, "never") == 0) arg = EXPANDO_NEVER; else { croak("Unknown signal type: %s", argstr); |