From: Anthony Minessale Date: Wed, 6 Aug 2008 23:33:58 +0000 (+0000) Subject: add patch from MODAPP-123 X-Git-Tag: v1.0.2~1503 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d93b280ad97cd826d202403c9b77fe5f5d995b4;p=thirdparty%2Ffreeswitch.git add patch from MODAPP-123 git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9232 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/applications/mod_voicemail/mod_voicemail.c b/src/mod/applications/mod_voicemail/mod_voicemail.c index 96fe5ab7aa..4d9469f63d 100644 --- a/src/mod/applications/mod_voicemail/mod_voicemail.c +++ b/src/mod/applications/mod_voicemail/mod_voicemail.c @@ -25,6 +25,7 @@ * * Anthony Minessale II * Bret McDanel + * John Wehle (john@feith.com) * * mod_voicemail.c -- Voicemail Module * @@ -2785,8 +2786,8 @@ static int web_callback(void *pArg, int argc, char **argv, char **columnNames) char read_date[80] = ""; char rss_date[80] = ""; switch_size_t retsize; - long l_created = 0; - long l_read = 0; + switch_time_t l_created = 0; + switch_time_t l_read = 0; long l_duration = 0; switch_core_time_duration_t duration; char duration_str[80]; @@ -2796,11 +2797,11 @@ static int web_callback(void *pArg, int argc, char **argv, char **columnNames) char title_aft[128 * 3] = ""; if (argc > 0) { - l_created = atol(argv[0]) * 1000000; + l_created = switch_time_make (atol(argv[0]), 0); } if (argc > 1) { - l_read = atol(argv[1]) * 1000000; + l_read = switch_time_make (atol(argv[1]), 0); } if (argc > 9) { @@ -2877,8 +2878,8 @@ static int rss_callback(void *pArg, int argc, char **argv, char **columnNames) char *fname; switch_size_t flen; switch_file_t *fd; - long l_created = 0; - long l_read = 0; + switch_time_t l_created = 0; + switch_time_t l_read = 0; long l_duration = 0; switch_core_time_duration_t duration; char duration_str[80]; @@ -2886,11 +2887,11 @@ static int rss_callback(void *pArg, int argc, char **argv, char **columnNames) char heard[80]; if (argc > 0) { - l_created = atol(argv[0]) * 1000000; + l_created = switch_time_make (atol(argv[0]), 0); } if (argc > 1) { - l_read = atol(argv[1]) * 1000000; + l_read = switch_time_make (atol(argv[1]), 0); } if (argc > 9) {