[asterisk-commits] mmichelson: branch mmichelson/1.4-test r69556 - /team/mmichelson/1.4-test/apps/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Jun 15 14:03:07 CDT 2007


Author: mmichelson
Date: Fri Jun 15 14:03:07 2007
New Revision: 69556

URL: http://svn.digium.com/view/asterisk?view=rev&rev=69556
Log:
Changing localtime_r to ast_localtime


Modified:
    team/mmichelson/1.4-test/apps/app_voicemail.c

Modified: team/mmichelson/1.4-test/apps/app_voicemail.c
URL: http://svn.digium.com/view/asterisk/team/mmichelson/1.4-test/apps/app_voicemail.c?view=diff&rev=69556&r1=69555&r2=69556
==============================================================================
--- team/mmichelson/1.4-test/apps/app_voicemail.c (original)
+++ team/mmichelson/1.4-test/apps/app_voicemail.c Fri Jun 15 14:03:07 2007
@@ -2134,7 +2134,7 @@
 	struct tm tm;
 	time_t t;
 	t = time(0);
-	localtime_r(&t,&tm);
+	ast_localtime(&t,&tm, NULL);
 	return strftime(s, len, "%a %b %e %r %Z %Y", &tm);
 }
 
@@ -4254,10 +4254,10 @@
 /* No internal variable parsing for now, so we'll comment it out for the time being */
 #if 0
 	/* Set the DIFF_* variables */
-	localtime_r(&t, &time_now);
+	ast_localtime(&t, &time_now, NULL);
 	tv_now = ast_tvnow();
 	tnow = tv_now.tv_sec;
-	localtime_r(&tnow,&time_then);
+	ast_localtime(&tnow,&time_then, NULL);
 
 	/* Day difference */
 	if (time_now.tm_year == time_then.tm_year)




More information about the asterisk-commits mailing list