[Freeswitch-svn] [commit] r3809 - freeswitch/trunk/src/mod/say/mod_say_en

Freeswitch SVN mikej at freeswitch.org
Fri Dec 22 17:46:09 EST 2006


Author: mikej
Date: Fri Dec 22 17:46:08 2006
New Revision: 3809

Modified:
   freeswitch/trunk/src/mod/say/mod_say_en/mod_say_en.c

Log:
datatypes

Modified: freeswitch/trunk/src/mod/say/mod_say_en/mod_say_en.c
==============================================================================
--- freeswitch/trunk/src/mod/say/mod_say_en/mod_say_en.c	(original)
+++ freeswitch/trunk/src/mod/say/mod_say_en/mod_say_en.c	Fri Dec 22 17:46:08 2006
@@ -205,10 +205,10 @@
 	uint8_t say_date = 0, say_time = 0;
 	
 	if (type == SST_TIME_MEASUREMENT) {
-		int32_t hours = 0;
-		int32_t minutes = 0;
-		int32_t seconds = 0;
-		int32_t r = 0;
+		int64_t hours = 0;
+		int64_t minutes = 0;
+		int64_t seconds = 0;
+		int64_t r = 0;
 
 		if (strchr(tosay, ':')) {
 			char *tme = switch_core_session_strdup(session, tosay);
@@ -227,7 +227,7 @@
 			}
 		} else {
 			if ((seconds = atoi(tosay)) <= 0) {
-				seconds = (time_t) time(NULL);
+				seconds = (int64_t) time(NULL);
 			}
 
 			if (seconds >= 60) {
@@ -290,7 +290,7 @@
 	}
 
 	if (say_time) {
-		uint8_t hour = tm.tm_hour, pm = 0;
+		int32_t hour = tm.tm_hour, pm = 0;
 		
 		if (hour > 12) {
 			hour -= 12;



More information about the Freeswitch-svn mailing list