[asterisk-addons-commits] russell: branch 1.4 r398 - /branches/1.4/cdr_addon_mysql.c

SVN commits to the Asterisk addons project asterisk-addons-commits at lists.digium.com
Mon Jun 18 17:40:41 CDT 2007


Author: russell
Date: Mon Jun 18 17:40:40 2007
New Revision: 398

URL: http://svn.digium.com/view/asterisk-addons?view=rev&rev=398
Log:
Fix cdr_addon_mysql to work with Asterisk 1.4.5 due to an API change ...

Modified:
    branches/1.4/cdr_addon_mysql.c

Modified: branches/1.4/cdr_addon_mysql.c
URL: http://svn.digium.com/view/asterisk-addons/branches/1.4/cdr_addon_mysql.c?view=diff&rev=398&r1=397&r2=398
==============================================================================
--- branches/1.4/cdr_addon_mysql.c (original)
+++ branches/1.4/cdr_addon_mysql.c Mon Jun 18 17:40:40 2007
@@ -129,7 +129,7 @@
 
 	memset(sqlcmd, 0, 2048);
 
-	localtime_r(&cdr->start.tv_sec, &tm);
+	ast_localtime(&cdr->start.tv_sec, &tm, NULL);
 	strftime(timestr, 128, DATE_FORMAT, &tm);
 
 db_reconnect:




More information about the asterisk-addons-commits mailing list