changeset 24051:3b968076a5dc

Don't use g_queue_get_length because it requires glib 2.4
author Mark Doliner <mark@kingant.net>
date Tue, 16 Sep 2008 17:30:23 +0000
parents d4239c588fcf
children 5395b18f9f08
files libpurple/protocols/oscar/flap_connection.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/oscar/flap_connection.c	Tue Sep 16 14:23:24 2008 +0000
+++ b/libpurple/protocols/oscar/flap_connection.c	Tue Sep 16 17:30:23 2008 +0000
@@ -158,8 +158,8 @@
 	gettimeofday(&now, NULL);
 
 	purple_debug_info("oscar", "Attempting to send %u queued SNACs and %u queued low-priority SNACs for %p\n",
-					  (conn->queued_snacs ? g_queue_get_length(conn->queued_snacs) : 0),
-					  (conn->queued_lowpriority_snacs ? g_queue_get_length(conn->queued_lowpriority_snacs) : 0),
+					  (conn->queued_snacs ? conn->queued_snacs->length : 0),
+					  (conn->queued_lowpriority_snacs ? conn->queued_lowpriority_snacs->length : 0),
 					  conn);
 	if (!conn->queued_snacs || flap_connection_send_snac_queue(conn, now, conn->queued_snacs)) {
 		if (!conn->queued_lowpriority_snacs || flap_connection_send_snac_queue(conn, now, conn->queued_lowpriority_snacs)) {