From 7df46597e17ff7af4a660ab47673fe2cabc91db6 Mon Sep 17 00:00:00 2001 From: Emanuele Giaquinta Date: Sun, 9 Mar 2008 12:01:16 +0000 Subject: 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 --- src/perl/common/Expando.xs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/perl') 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); -- cgit v1.2.3