[asterisk-commits] russell: trunk r249009 - /trunk/cdr/cdr_pgsql.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Feb 26 02:04:11 CST 2010


Author: russell
Date: Fri Feb 26 02:04:07 2010
New Revision: 249009

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=249009
Log:
constification and remove unnecessary include

Modified:
    trunk/cdr/cdr_pgsql.c

Modified: trunk/cdr/cdr_pgsql.c
URL: http://svnview.digium.com/svn/asterisk/trunk/cdr/cdr_pgsql.c?view=diff&rev=249009&r1=249008&r2=249009
==============================================================================
--- trunk/cdr/cdr_pgsql.c (original)
+++ trunk/cdr/cdr_pgsql.c Fri Feb 26 02:04:07 2010
@@ -41,8 +41,6 @@
 
 ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
 
-#include <time.h>
-
 #include <libpq-fe.h>
 
 #include "asterisk/config.h"
@@ -52,8 +50,8 @@
 
 #define DATE_FORMAT "'%Y-%m-%d %T'"
 
-static char *name = "pgsql";
-static char *config = "cdr_pgsql.conf";
+static const char name[] = "pgsql";
+static const char config[] = "cdr_pgsql.conf";
 static char *pghostname = NULL, *pgdbname = NULL, *pgdbuser = NULL, *pgpassword = NULL, *pgdbport = NULL, *table = NULL;
 static int connected = 0;
 static int maxsize = 512, maxsize2 = 512;




More information about the asterisk-commits mailing list