diff options
author | James Booth <boothj5@gmail.com> | 2016-07-25 23:13:09 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2016-07-25 23:13:09 +0100 |
commit | 6777919d96d77c5c1b08ad5ddd48ed2e4b15c87c (patch) | |
tree | b3fedbbd6378fb802bf1890f61ba89f4a07ed844 /src/xmpp/presence.c | |
parent | 5f8ef3816c9e408c83d8a0db38b3d86b42c10957 (diff) | |
download | profani-tty-6777919d96d77c5c1b08ad5ddd48ed2e4b15c87c.tar.gz |
Rename rooms vars in _send_room_presence
Diffstat (limited to 'src/xmpp/presence.c')
-rw-r--r-- | src/xmpp/presence.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/xmpp/presence.c b/src/xmpp/presence.c index 84f2873e..6ba3573a 100644 --- a/src/xmpp/presence.c +++ b/src/xmpp/presence.c @@ -300,11 +300,11 @@ presence_send(const resource_presence_t presence_type, const char *const msg, co static void _send_room_presence(xmpp_stanza_t *presence) { - GList *rooms_p = muc_rooms(); - GList *rooms = rooms_p; + GList *rooms = muc_rooms(); + GList *curr = rooms; - while (rooms) { - const char *room = rooms->data; + while (curr) { + const char *room = curr->data; const char *nick = muc_nick(room); if (nick) { @@ -316,12 +316,10 @@ _send_room_presence(xmpp_stanza_t *presence) free(full_room_jid); } - rooms = g_list_next(rooms); + curr = g_list_next(curr); } - if (rooms_p) { - g_list_free(rooms_p); - } + g_list_free(rooms); } void |