From a01ac9a899e2c6d1a4c8cfaa464c0852e1a4990d Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Fri, 10 Jul 2009 00:55:28 +0000 Subject: [PATCH] Wed Jul 8 11:14:36 CDT 2009 Pekka Pessi * su_source.c: silenced warning in su_source_check() git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14195 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- libs/sofia-sip/.update | 2 +- libs/sofia-sip/libsofia-sip-ua-glib/su-glib/su_source.c | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/libs/sofia-sip/.update b/libs/sofia-sip/.update index 23b9dece45..b383c396f1 100644 --- a/libs/sofia-sip/.update +++ b/libs/sofia-sip/.update @@ -1 +1 @@ -Thu Jul 9 19:52:59 CDT 2009 +Thu Jul 9 19:53:33 CDT 2009 diff --git a/libs/sofia-sip/libsofia-sip-ua-glib/su-glib/su_source.c b/libs/sofia-sip/libsofia-sip-ua-glib/su-glib/su_source.c index 792bf7a746..4237ead3f5 100644 --- a/libs/sofia-sip/libsofia-sip-ua-glib/su-glib/su_source.c +++ b/libs/sofia-sip/libsofia-sip-ua-glib/su-glib/su_source.c @@ -427,20 +427,21 @@ gboolean su_source_check(GSource *gs) SuSource *ss = (SuSource *)gs; su_port_t *self = ss->ss_port; gint tout; - unsigned I; +#if SU_HAVE_POLL + unsigned i, I; +#endif enter; +#if SU_HAVE_POLL I = self->sup_n_waits; -#if SU_HAVE_POLL - unsigned i; for (i = 0; i < I; i++) { if (self->sup_waits[i].revents) return TRUE; } #endif - (void)I; + return su_source_prepare(gs, &tout); }