[asterisk-commits] tilghman: trunk r69745 - /trunk/apps/app_rpt.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Jun 18 12:48:56 CDT 2007


Author: tilghman
Date: Mon Jun 18 12:48:56 2007
New Revision: 69745

URL: http://svn.digium.com/view/asterisk?view=rev&rev=69745
Log:
Janitor for ast_localtime

Modified:
    trunk/apps/app_rpt.c

Modified: trunk/apps/app_rpt.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_rpt.c?view=diff&rev=69745&r1=69744&r2=69745
==============================================================================
--- trunk/apps/app_rpt.c (original)
+++ trunk/apps/app_rpt.c Mon Jun 18 12:48:56 2007
@@ -2307,7 +2307,7 @@
 	case STATS_TIME:
 		wait_interval(myrpt, DLY_TELEM, mychannel); /* Wait a little bit */
 		t = time(NULL);
-		localtime_r(&t, &localtm);
+		ast_localtime(&t, &localtm, NULL);
 		/* Say the phase of the day is before the time */
 		if ((localtm.tm_hour >= 0) && (localtm.tm_hour < 12))
 			p = "rpt/goodmorning";




More information about the asterisk-commits mailing list