/pidgin/main: d286e078dcc1: Use g_ascii_str(n)casecmp.
Elliott Sales de Andrade
qulogic at pidgin.im
Wed Jan 16 23:41:58 EST 2013
Changeset: d286e078dcc17cedf57fe4fac9b2c5928dba2e90
Author: Elliott Sales de Andrade <qulogic at pidgin.im>
Date: 2013-01-07 23:44 -0500
Branch: default
URL: http://hg.pidgin.im/pidgin/main/rev/d286e078dcc1
Description:
Use g_ascii_str(n)casecmp.
diffstat:
libpurple/protocols/msn/notification.c | 2 +-
pidgin/plugins/disco/xmppdisco.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diffs (24 lines):
diff --git a/libpurple/protocols/msn/notification.c b/libpurple/protocols/msn/notification.c
--- a/libpurple/protocols/msn/notification.c
+++ b/libpurple/protocols/msn/notification.c
@@ -1592,7 +1592,7 @@ parse_user_endpoints(MsnUser *user, xmln
/* Disconnect others, if MPOP is disabled */
if (is_me
&& !session->enable_mpop
- && strncasecmp(id + 1, session->guid, 36) != 0) {
+ && g_ascii_strncasecmp(id + 1, session->guid, 36) != 0) {
purple_debug_info("msn", "Disconnecting Endpoint %s\n", id);
tmp = g_strdup_printf("%s;%s", user->passport, id);
diff --git a/pidgin/plugins/disco/xmppdisco.c b/pidgin/plugins/disco/xmppdisco.c
--- a/pidgin/plugins/disco/xmppdisco.c
+++ b/pidgin/plugins/disco/xmppdisco.c
@@ -265,7 +265,7 @@ disco_type_from_string(const gchar *str)
g_return_val_if_fail(str != NULL, "");
for ( ; disco_type_mappings[i].from; ++i) {
- if (!strcasecmp(str, disco_type_mappings[i].from))
+ if (!g_ascii_strcasecmp(str, disco_type_mappings[i].from))
return disco_type_mappings[i].to;
}
More information about the Commits
mailing list