From 53eeb0ef45dd7cd871d4dca2c59b1dd208ee23c6 Mon Sep 17 00:00:00 2001 From: James Booth Date: Sun, 5 May 2013 23:20:27 +0100 Subject: Use autocomplete instead of hash table for subscription requests --- src/ui/console.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/ui') 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); } } -- cgit 1.4.1-2-gfad0