# HG changeset patch # User Evan Schoenberg # Date 1178388633 0 # Node ID 58f58027608e7e7b54e3fde94a9a9e41feb36b7e # Parent 84e2c7cc590affd664ccdac6ad0b1b181f16ee75 It is more useful for these aim_ssi methods to return a real value (the result of aim_ssi_sync()) than to always return 0 regardless of their success or failure diff -r 84e2c7cc590a -r 58f58027608e libpurple/protocols/oscar/family_feedbag.c --- a/libpurple/protocols/oscar/family_feedbag.c Sat May 05 18:07:47 2007 +0000 +++ b/libpurple/protocols/oscar/family_feedbag.c Sat May 05 18:10:33 2007 +0000 @@ -714,9 +714,7 @@ aim_ssi_itemlist_del(&od->ssi.local, cur); /* If we've made any changes then sync our list with the server's */ - aim_ssi_sync(od); - - return 0; + return aim_ssi_sync(od); } /** @@ -769,9 +767,7 @@ aim_ssi_itemlist_rebuildgroup(od->ssi.local, group); /* Sync our local list with the server list */ - aim_ssi_sync(od); - - return 0; + return aim_ssi_sync(od); } /** @@ -795,9 +791,7 @@ aim_ssi_itemlist_add(&od->ssi.local, name, 0x0000, 0xFFFF, AIM_SSI_TYPE_PERMIT, NULL); /* Sync our local list with the server list */ - aim_ssi_sync(od); - - return 0; + return aim_ssi_sync(od); } /** @@ -821,9 +815,7 @@ aim_ssi_itemlist_add(&od->ssi.local, name, 0x0000, 0xFFFF, AIM_SSI_TYPE_DENY, NULL); /* Sync our local list with the server list */ - aim_ssi_sync(od); - - return 0; + return aim_ssi_sync(od); } /** @@ -865,9 +857,7 @@ } /* Sync our local list with the server list */ - aim_ssi_sync(od); - - return 0; + return aim_ssi_sync(od); } /** @@ -892,9 +882,7 @@ aim_ssi_itemlist_del(&od->ssi.local, del); /* Sync our local list with the server list */ - aim_ssi_sync(od); - - return 0; + return aim_ssi_sync(od); } /** @@ -919,9 +907,7 @@ aim_ssi_itemlist_del(&od->ssi.local, del); /* Sync our local list with the server list */ - aim_ssi_sync(od); - - return 0; + return aim_ssi_sync(od); } /** @@ -977,9 +963,7 @@ aim_tlvlist_remove(&tmp->data, 0x0131); /* Sync our local list with the server list */ - aim_ssi_sync(od); - - return 0; + return aim_ssi_sync(od); } /** @@ -1009,9 +993,7 @@ aim_tlvlist_remove(&tmp->data, 0x013c); /* Sync our local list with the server list */ - aim_ssi_sync(od); - - return 0; + return aim_ssi_sync(od); } /** @@ -1037,9 +1019,7 @@ strcpy(group->name, newgn); /* Sync our local list with the server list */ - aim_ssi_sync(od); - - return 0; + return aim_ssi_sync(od); } /** @@ -1079,9 +1059,7 @@ aim_tlvlist_replace_32(&tmp->data, 0x00cb, vismask); /* Sync our local list with the server list */ - aim_ssi_sync(od); - - return 0; + return aim_ssi_sync(od); } /** @@ -1171,9 +1149,7 @@ aim_tlvlist_replace_32(&tmp->data, 0x00c9, presence); /* Sync our local list with the server list */ - aim_ssi_sync(od); - - return 0; + return aim_ssi_sync(od); } /*