Mercurial > pidgin
changeset 17083:25ef7db38f28
More strcasecmp() replacements.
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Mon, 14 May 2007 23:45:14 +0000 |
parents | 7ade887fd3f6 |
children | 928fc0ecd6b6 |
files | libpurple/protocols/irc/parse.c libpurple/protocols/silc/util.c libpurple/protocols/zephyr/zephyr.c |
diffstat | 3 files changed, 8 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/irc/parse.c Mon May 14 23:35:50 2007 +0000 +++ b/libpurple/protocols/irc/parse.c Mon May 14 23:45:14 2007 +0000 @@ -264,7 +264,7 @@ while (*charset == ' ') charset++; - if (!strcasecmp("UTF-8", charset)) { + if (!g_ascii_strcasecmp("UTF-8", charset)) { if (g_utf8_validate(string, -1, NULL)) utf8 = g_strdup(string); } else {
--- a/libpurple/protocols/silc/util.c Mon May 14 23:35:50 2007 +0000 +++ b/libpurple/protocols/silc/util.c Mon May 14 23:45:14 2007 +0000 @@ -620,15 +620,15 @@ ct = strrchr(filename, '.'); if (!ct) return NULL; - else if (!strcasecmp(".png", ct)) + else if (!g_ascii_strcasecmp(".png", ct)) return strdup("image/png"); - else if (!strcasecmp(".jpg", ct)) + else if (!g_ascii_strcasecmp(".jpg", ct)) return strdup("image/jpeg"); - else if (!strcasecmp(".jpeg", ct)) + else if (!g_ascii_strcasecmp(".jpeg", ct)) return strdup("image/jpeg"); - else if (!strcasecmp(".gif", ct)) + else if (!g_ascii_strcasecmp(".gif", ct)) return strdup("image/gif"); - else if (!strcasecmp(".tiff", ct)) + else if (!g_ascii_strcasecmp(".tiff", ct)) return strdup("image/tiff"); return NULL;
--- a/libpurple/protocols/zephyr/zephyr.c Mon May 14 23:35:50 2007 +0000 +++ b/libpurple/protocols/zephyr/zephyr.c Mon May 14 23:45:14 2007 +0000 @@ -990,7 +990,8 @@ tc = tree_child(ptree,0)->contents; - if (ptree->num_children > 0 && tc && !strcasecmp(tc, key)) { + /* g_strcasecmp() is deprecated. What is the encoding here??? */ + if (ptree->num_children > 0 && tc && !g_strcasecmp(tc, key)) { return ptree; } else { parse_tree *result = &null_parse_tree;