diff options
author | twilson <twilson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-11-20 17:48:58 +0000 |
---|---|---|
committer | twilson <twilson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-11-20 17:48:58 +0000 |
commit | 9be50842044b3bc4776a8138069adb103c867aa7 (patch) | |
tree | 77edf0f394739299c2aecf46a35f769ab2f493ae /cdr/cdr_pgsql.c | |
parent | 4d438a3805750a055c2eeea09d3c202ee79c577d (diff) |
Begin on a crusade to end trailing whitespace!
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@158072 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'cdr/cdr_pgsql.c')
-rw-r--r-- | cdr/cdr_pgsql.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/cdr/cdr_pgsql.c b/cdr/cdr_pgsql.c index c56bf97f1..eddc8187d 100644 --- a/cdr/cdr_pgsql.c +++ b/cdr/cdr_pgsql.c @@ -3,8 +3,8 @@ * * Copyright (C) 2003 - 2006 * - * Matthew D. Hardeman <mhardemn@papersoft.com> - * Adapted from the MySQL CDR logger originally by James Sharp + * Matthew D. Hardeman <mhardemn@papersoft.com> + * Adapted from the MySQL CDR logger originally by James Sharp * * Modified September 2003 * Matthew D. Hardeman <mhardemn@papersoft.com> @@ -22,9 +22,9 @@ /*! \file * - * \brief PostgreSQL CDR logger - * - * \author Matthew D. Hardeman <mhardemn@papersoft.com> + * \brief PostgreSQL CDR logger + * + * \author Matthew D. Hardeman <mhardemn@papersoft.com> * \extref PostgreSQL http://www.postgresql.org/ * * See also @@ -125,7 +125,7 @@ static int pgsql_log(struct ast_cdr *cdr) struct columns *cur; struct ast_str *sql = ast_str_create(maxsize), *sql2 = ast_str_create(maxsize2); char buf[257], escapebuf[513], *value; - + if (!sql || !sql2) { if (sql) { ast_free(sql); @@ -138,7 +138,7 @@ static int pgsql_log(struct ast_cdr *cdr) ast_str_set(&sql, 0, "INSERT INTO %s (", table); ast_str_set(&sql2, 0, " VALUES ("); - + AST_RWLIST_RDLOCK(&psql_columns); AST_RWLIST_TRAVERSE(&psql_columns, cur, list) { /* For fields not set, simply skip them */ @@ -156,7 +156,7 @@ static int pgsql_log(struct ast_cdr *cdr) } continue; } - + LENGTHEN_BUF1(strlen(cur->name) + 2); ast_str_append(&sql, 0, "\"%s\",", cur->name); |