提交 7b749328 authored 作者: Michael Jerris's avatar Michael Jerris

datatypes

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3809 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 b6721ed4
...@@ -205,10 +205,10 @@ static switch_status_t en_say_time(switch_core_session_t *session, ...@@ -205,10 +205,10 @@ static switch_status_t en_say_time(switch_core_session_t *session,
uint8_t say_date = 0, say_time = 0; uint8_t say_date = 0, say_time = 0;
if (type == SST_TIME_MEASUREMENT) { if (type == SST_TIME_MEASUREMENT) {
int32_t hours = 0; int64_t hours = 0;
int32_t minutes = 0; int64_t minutes = 0;
int32_t seconds = 0; int64_t seconds = 0;
int32_t r = 0; int64_t r = 0;
if (strchr(tosay, ':')) { if (strchr(tosay, ':')) {
char *tme = switch_core_session_strdup(session, tosay); char *tme = switch_core_session_strdup(session, tosay);
...@@ -227,7 +227,7 @@ static switch_status_t en_say_time(switch_core_session_t *session, ...@@ -227,7 +227,7 @@ static switch_status_t en_say_time(switch_core_session_t *session,
} }
} else { } else {
if ((seconds = atoi(tosay)) <= 0) { if ((seconds = atoi(tosay)) <= 0) {
seconds = (time_t) time(NULL); seconds = (int64_t) time(NULL);
} }
if (seconds >= 60) { if (seconds >= 60) {
...@@ -290,7 +290,7 @@ static switch_status_t en_say_time(switch_core_session_t *session, ...@@ -290,7 +290,7 @@ static switch_status_t en_say_time(switch_core_session_t *session,
} }
if (say_time) { if (say_time) {
uint8_t hour = tm.tm_hour, pm = 0; int32_t hour = tm.tm_hour, pm = 0;
if (hour > 12) { if (hour > 12) {
hour -= 12; hour -= 12;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论