Mercurial > pidgin.yaz
changeset 21763:5bf56cc935a8
merge of '07d6eac62e7097b98307ba42488a44faf47a14e4'
and '8e868e68fa3050bfdc7a758df26c20b564f4e5f9'
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Tue, 04 Dec 2007 09:32:06 +0000 |
parents | 2a3217f76615 (current diff) 477b020d5945 (diff) |
children | c7e81e9cc476 |
files | |
diffstat | 1 files changed, 2 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/oscar/family_feedbag.c Tue Dec 04 06:13:13 2007 +0000 +++ b/libpurple/protocols/oscar/family_feedbag.c Tue Dec 04 09:32:06 2007 +0000 @@ -341,13 +341,9 @@ */ struct aim_ssi_item *aim_ssi_itemlist_exists(struct aim_ssi_item *list, const char *sn) { - struct aim_ssi_item *cur; - if (!list || !sn) + if (!sn) return NULL; - for (cur=list; cur; cur=cur->next) - if ((cur->type == AIM_SSI_TYPE_BUDDY) && (cur->name) && (!aim_sncmp(cur->name, sn))) - return cur; - return NULL; + return aim_ssi_itemlist_finditem(list, NULL, sn, AIM_SSI_TYPE_BUDDY); } /**