mirror of
https://github.com/irssi/irssi.git
synced 2026-08-12 21:27:39 +02:00
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:
parent
496d82ac48
commit
7df46597e1
22 changed files with 63 additions and 63 deletions
|
|
@ -209,17 +209,17 @@ static int signal_name_to_id(const char *name)
|
|||
/* check only the few most common signals, too much job to check
|
||||
them all. if we sometimes want more, procps-sources/proc/sig.c
|
||||
would be useful for copypasting */
|
||||
if (g_strcasecmp(name, "hup") == 0)
|
||||
if (g_ascii_strcasecmp(name, "hup") == 0)
|
||||
return SIGHUP;
|
||||
if (g_strcasecmp(name, "int") == 0)
|
||||
if (g_ascii_strcasecmp(name, "int") == 0)
|
||||
return SIGINT;
|
||||
if (g_strcasecmp(name, "term") == 0)
|
||||
if (g_ascii_strcasecmp(name, "term") == 0)
|
||||
return SIGTERM;
|
||||
if (g_strcasecmp(name, "kill") == 0)
|
||||
if (g_ascii_strcasecmp(name, "kill") == 0)
|
||||
return SIGKILL;
|
||||
if (g_strcasecmp(name, "usr1") == 0)
|
||||
if (g_ascii_strcasecmp(name, "usr1") == 0)
|
||||
return SIGUSR1;
|
||||
if (g_strcasecmp(name, "usr2") == 0)
|
||||
if (g_ascii_strcasecmp(name, "usr2") == 0)
|
||||
return SIGUSR2;
|
||||
return -1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue