cpw.darkrain42.roster: d6ef53b4: Fix a warning.
darkrain42 at pidgin.im
darkrain42 at pidgin.im
Sun Jul 12 01:58:28 EDT 2009
-----------------------------------------------------------------
Revision: d6ef53b44b08bcca620e5b3c47cdc00c46814d2e
Ancestor: 9ca65f4b51fae5fdb40f2fd35ac6a10fbe871d55
Author: darkrain42 at pidgin.im
Date: 2009-07-12T02:59:46
Branch: im.pidgin.cpw.darkrain42.roster
URL: http://d.pidgin.im/viewmtn/revision/info/d6ef53b44b08bcca620e5b3c47cdc00c46814d2e
Modified files:
libpurple/blist.c
ChangeLog:
Fix a warning.
-------------- next part --------------
============================================================
--- libpurple/blist.c e568089992ac6fdc21a7093015f028e490095e15
+++ libpurple/blist.c b24d022474bece4fc5494649a786ccafedaa67ad
@@ -83,11 +83,13 @@ struct _purple_hbuddy {
PurpleBlistNode *group;
};
+/* This function must not use purple_normalize */
static guint _purple_blist_hbuddy_hash(struct _purple_hbuddy *hb)
{
return g_str_hash(hb->name);
}
+/* This function must not use purple_normalize */
static guint _purple_blist_hbuddy_equal(struct _purple_hbuddy *hb1, struct _purple_hbuddy *hb2)
{
return (purple_strequal(hb1->name, hb2->name) && hb1->account == hb2->account && hb1->group == hb2->group);
@@ -2352,7 +2354,7 @@ PurpleBuddy *purple_find_buddy(PurpleAcc
g_return_val_if_fail((name != NULL) && (*name != '\0'), NULL);
hb.account = account;
- hb.name = purple_normalize(account, name);
+ hb.name = (gchar *)purple_normalize(account, name);
for (group = purplebuddylist->root; group; group = group->next) {
hb.group = group;
More information about the Commits
mailing list