[asterisk-commits] oej: branch group/pine-cdr-pgsql-status-trunk r291359 - /team/group/pine-cdr-...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Oct 13 00:51:32 CDT 2010
Author: oej
Date: Wed Oct 13 00:51:29 2010
New Revision: 291359
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=291359
Log:
Fixes according to reviewboard
Modified:
team/group/pine-cdr-pgsql-status-trunk/cdr/cdr_pgsql.c
Modified: team/group/pine-cdr-pgsql-status-trunk/cdr/cdr_pgsql.c
URL: http://svnview.digium.com/svn/asterisk/team/group/pine-cdr-pgsql-status-trunk/cdr/cdr_pgsql.c?view=diff&rev=291359&r1=291358&r2=291359
==============================================================================
--- team/group/pine-cdr-pgsql-status-trunk/cdr/cdr_pgsql.c (original)
+++ team/group/pine-cdr-pgsql-status-trunk/cdr/cdr_pgsql.c Wed Oct 13 00:51:29 2010
@@ -58,7 +58,7 @@
static int maxsize = 512, maxsize2 = 512;
static time_t connect_time = 0;
static int totalrecords = 0;
-static int records = 0;
+static int records;
static char *handle_cdr_pgsql_status(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a);
static struct ast_cli_entry cdr_pgsql_status_cli[] = {
@@ -418,7 +418,7 @@
struct columns *current;
ast_cdr_unregister(name);
- ast_cli_unregister_multiple(cdr_pgsql_status_cli, sizeof(cdr_pgsql_status_cli) / sizeof(struct ast_cli_entry));
+ ast_cli_unregister_multiple(cdr_pgsql_status_cli, ARRAY_LEN(cdr_pgsql_status_cli));
PQfinish(conn);
More information about the asterisk-commits
mailing list