Thu, 14 Jan 2021 20:31:40 -0600
Inline zephyr_resubscribe
It's used once and return value wasn't utilized.
Testing Done:
Compile.
Reviewed at https://reviews.imfreedom.org/r/426/
| libpurple/protocols/zephyr/zephyr.c | file | annotate | diff | comparison | revisions |
--- a/libpurple/protocols/zephyr/zephyr.c Thu Jan 14 07:41:45 2021 -0600 +++ b/libpurple/protocols/zephyr/zephyr.c Thu Jan 14 20:31:40 2021 -0600 @@ -2407,26 +2407,18 @@ } -static int zephyr_resubscribe(PurpleConnection *gc) +/* Resubscribe to the in-memory list of subscriptions and also unsubscriptions */ +static void +zephyr_action_resubscribe(PurpleProtocolAction *action) { - /* Resubscribe to the in-memory list of subscriptions and also - unsubscriptions*/ - zephyr_account *zephyr = purple_connection_get_protocol_data(gc); + zephyr_account *zephyr = purple_connection_get_protocol_data(action->connection); + for (GSList *s = zephyr->subscrips; s; s = s->next) { zephyr_triple *zt = s->data; /* XXX We really should care if this fails */ zephyr->subscribe_to(zephyr, zt->class, zt->instance, zt->recipient); } /* XXX handle unsubscriptions */ - return 1; -} - - -static void zephyr_action_resubscribe(PurpleProtocolAction *action) -{ - - PurpleConnection *gc = action->connection; - zephyr_resubscribe(gc); }