[Freeswitch-svn] [commit] r2256 - in freeswitch/trunk/src: . mod/applications/mod_conference
Freeswitch SVN
mikej at freeswitch.org
Fri Aug 11 11:01:49 EDT 2006
Author: mikej
Date: Fri Aug 11 11:01:48 2006
New Revision: 2256
Modified:
freeswitch/trunk/src/mod/applications/mod_conference/mod_conference.c
freeswitch/trunk/src/switch_ivr.c
Log:
time_t cast.
Modified: freeswitch/trunk/src/mod/applications/mod_conference/mod_conference.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_conference/mod_conference.c (original)
+++ freeswitch/trunk/src/mod/applications/mod_conference/mod_conference.c Fri Aug 11 11:01:48 2006
@@ -2069,7 +2069,7 @@
break;
}
- if ((time(NULL) - start) > timelimit) {
+ if ((time(NULL) - start) > (time_t)timelimit) {
break;
}
switch_yield(1000);
@@ -2082,7 +2082,7 @@
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))) {
Modified: freeswitch/trunk/src/switch_ivr.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr.c (original)
+++ freeswitch/trunk/src/switch_ivr.c Fri Aug 11 11:01:48 2006
@@ -1203,7 +1203,7 @@
break;
}
- if ((time(NULL) - start) > timelimit) {
+ if ((time(NULL) - start) > (time_t)timelimit) {
break;
}
switch_yield(1000);
@@ -1216,7 +1216,7 @@
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)) {
More information about the Freeswitch-svn
mailing list