aboutsummaryrefslogtreecommitdiffstats
path: root/cdr
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2010-02-26 08:04:07 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2010-02-26 08:04:07 +0000
commit30e7ccede60ada43f9584434e2284afb2a0a321e (patch)
treed2c87d3284a7d21f53dc9ee51763735511ec4b28 /cdr
parent7f94645901c84726c76110fabe456c4afa7543e1 (diff)
constification and remove unnecessary include
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@249009 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'cdr')
-rw-r--r--cdr/cdr_pgsql.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/cdr/cdr_pgsql.c b/cdr/cdr_pgsql.c
index 6869ddf2c..0a684ddb0 100644
--- a/cdr/cdr_pgsql.c
+++ b/cdr/cdr_pgsql.c
@@ -41,8 +41,6 @@
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
-#include <time.h>
-
#include <libpq-fe.h>
#include "asterisk/config.h"
@@ -52,8 +50,8 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#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;