aboutsummaryrefslogtreecommitdiffstats
path: root/cdr
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-03-11 16:28:03 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-03-11 16:28:03 +0000
commit48fd5486a846b2071153bc006004f783feb1e78e (patch)
tree4dc52c39bbc1b52e5c1588c9966f902e5205da14 /cdr
parent06734e3a250b0277e563eff5cff0c13c3bdf3b27 (diff)
Whitespace changes only
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@107551 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'cdr')
-rw-r--r--cdr/cdr_pgsql.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/cdr/cdr_pgsql.c b/cdr/cdr_pgsql.c
index 8ec1105ae..84d714687 100644
--- a/cdr/cdr_pgsql.c
+++ b/cdr/cdr_pgsql.c
@@ -430,17 +430,18 @@ static int config_module(int reload)
}
if (option_debug) {
- if (ast_strlen_zero(pghostname))
+ if (ast_strlen_zero(pghostname)) {
ast_debug(1, "cdr_pgsql: using default unix socket\n");
- else
+ } else {
ast_debug(1, "cdr_pgsql: got hostname of %s\n", pghostname);
- ast_debug(1, "cdr_pgsql: got port of %s\n", pgdbport);
- ast_debug(1, "cdr_pgsql: got user of %s\n", pgdbuser);
- ast_debug(1, "cdr_pgsql: got dbname of %s\n", pgdbname);
- ast_debug(1, "cdr_pgsql: got password of %s\n", pgpassword);
- ast_debug(1, "cdr_pgsql: got sql table name of %s\n", table);
+ }
+ ast_debug(1, "cdr_pgsql: got port of %s\n", pgdbport);
+ ast_debug(1, "cdr_pgsql: got user of %s\n", pgdbuser);
+ ast_debug(1, "cdr_pgsql: got dbname of %s\n", pgdbname);
+ ast_debug(1, "cdr_pgsql: got password of %s\n", pgpassword);
+ ast_debug(1, "cdr_pgsql: got sql table name of %s\n", table);
}
-
+
conn = PQsetdbLogin(pghostname, pgdbport, NULL, NULL, pgdbname, pgdbuser, pgpassword);
if (PQstatus(conn) != CONNECTION_BAD) {
char sqlcmd[256];