From f1e3aa5a964dcd807d7a13d1fce498104be13697 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Fri, 11 Aug 2006 15:01:48 +0000 Subject: [PATCH] time_t cast. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2256 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/applications/mod_conference/mod_conference.c | 4 ++-- src/switch_ivr.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mod/applications/mod_conference/mod_conference.c b/src/mod/applications/mod_conference/mod_conference.c index 3a53126d90..6a856a2ab1 100644 --- a/src/mod/applications/mod_conference/mod_conference.c +++ b/src/mod/applications/mod_conference/mod_conference.c @@ -2069,7 +2069,7 @@ static switch_status_t conference_outcall(conference_obj_t *conference, switch_c break; } - if ((time(NULL) - start) > timelimit) { + if ((time(NULL) - start) > (time_t)timelimit) { break; } switch_yield(1000); @@ -2082,7 +2082,7 @@ static switch_status_t conference_outcall(conference_obj_t *conference, switch_c while ((!caller_channel || switch_channel_ready(caller_channel)) && !switch_channel_test_flag(peer_channel, CF_ANSWERED) && !switch_channel_test_flag(peer_channel, CF_EARLY_MEDIA) && - ((time(NULL) - start) < timelimit)) { + ((time(NULL) - start) < (time_t)timelimit)) { /* read from the channel while we wait if the audio is up on it */ if (session && (switch_channel_test_flag(caller_channel, CF_ANSWERED) || switch_channel_test_flag(caller_channel, CF_EARLY_MEDIA))) { diff --git a/src/switch_ivr.c b/src/switch_ivr.c index 142d55af66..04a747aec8 100644 --- a/src/switch_ivr.c +++ b/src/switch_ivr.c @@ -1203,7 +1203,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_multi_threaded_bridge(switch_core_ses break; } - if ((time(NULL) - start) > timelimit) { + if ((time(NULL) - start) > (time_t)timelimit) { break; } switch_yield(1000); @@ -1216,7 +1216,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_multi_threaded_bridge(switch_core_ses switch_channel_ready(peer_channel) && !switch_channel_test_flag(peer_channel, CF_ANSWERED) && !switch_channel_test_flag(peer_channel, CF_EARLY_MEDIA) && - ((time(NULL) - start) < timelimit)) { + ((time(NULL) - start) < (time_t)timelimit)) { /* read from the channel while we wait if the audio is up on it */ if (switch_channel_test_flag(caller_channel, CF_ANSWERED) || switch_channel_test_flag(caller_channel, CF_EARLY_MEDIA)) {