mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 20:33:46 +02:00
Replace g_strdup+g_str{up,down} with g_ascii_str{up,down}.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4721 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
40f7904a1a
commit
af3b0b2b93
4 changed files with 4 additions and 8 deletions
|
|
@ -254,9 +254,8 @@ static void cmd_help(const char *data)
|
|||
{
|
||||
char *cmd;
|
||||
|
||||
cmd = g_strdup(data);
|
||||
cmd = g_ascii_strdown(data, -1);
|
||||
g_strchomp(cmd);
|
||||
g_strdown(cmd);
|
||||
show_help(cmd);
|
||||
g_free(cmd);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -138,8 +138,7 @@ static char **module_prefixes_get(void)
|
|||
for (tmp = chat_protocols; tmp != NULL; tmp = tmp->next) {
|
||||
CHAT_PROTOCOL_REC *rec = tmp->data;
|
||||
|
||||
name = g_strdup(rec->name);
|
||||
g_strdown(name);
|
||||
name = g_ascii_strdown(rec->name, -1);
|
||||
|
||||
list[count++] = name;
|
||||
list[count++] = g_strconcat("fe_", name, NULL);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue