From 5e9c39468b7341733ac5ab80741da3c4d1499281 Mon Sep 17 00:00:00 2001 From: Russell Bryant <russell@russellbryant.com> Date: Fri, 26 Feb 2010 08:04:07 +0000 Subject: [PATCH] constification and remove unnecessary include git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@249009 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- cdr/cdr_pgsql.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cdr/cdr_pgsql.c b/cdr/cdr_pgsql.c index 6869ddf2c1..0a684ddb0e 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; -- GitLab