diff options
author | James Booth <boothj5@gmail.com> | 2013-05-05 23:20:27 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2013-05-05 23:20:27 +0100 |
commit | 53eeb0ef45dd7cd871d4dca2c59b1dd208ee23c6 (patch) | |
tree | c43941a30a5993a6829bb22a1d7bb66f97701d9d /src/ui | |
parent | ae4c54bdccca5ddd883200d0079d28b1f11d8f44 (diff) | |
download | profani-tty-53eeb0ef45dd7cd871d4dca2c59b1dd208ee23c6.tar.gz |
Use autocomplete instead of hash table for subscription requests
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/console.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ui/console.c b/src/ui/console.c index 33cf1c51..47ae9843 100644 --- a/src/ui/console.c +++ b/src/ui/console.c @@ -571,16 +571,17 @@ cons_show_software_version(const char * const jid, const char * const presence, void cons_show_received_subs(void) { - GList *received = presence_get_subscription_requests(); + GSList *received = presence_get_subscription_requests(); if (received == NULL) { cons_show("No outstanding subscription requests."); } else { cons_show("Outstanding subscription requests from:", - g_list_length(received)); + g_slist_length(received)); while (received != NULL) { cons_show(" %s", received->data); - received = g_list_next(received); + received = g_slist_next(received); } + g_slist_free_full(received, g_free); } } |