[asterisk-commits] trunk - r8523 /trunk/cdr/cdr_pgsql.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Tue Jan 24 04:42:10 MST 2006


Author: oej
Date: Tue Jan 24 05:42:09 2006
New Revision: 8523

URL: http://svn.digium.com/view/asterisk?rev=8523&view=rev
Log:
Declaring conn and result static to avoid collission with realtime driver (issue 6336, pressureman)

Modified:
    trunk/cdr/cdr_pgsql.c

Modified: trunk/cdr/cdr_pgsql.c
URL: http://svn.digium.com/view/asterisk/trunk/cdr/cdr_pgsql.c?rev=8523&r1=8522&r2=8523&view=diff
==============================================================================
--- trunk/cdr/cdr_pgsql.c (original)
+++ trunk/cdr/cdr_pgsql.c Tue Jan 24 05:42:09 2006
@@ -1,7 +1,7 @@
 /*
  * Asterisk -- An open source telephony toolkit.
  *
- * Copyright (C) 2003 - 2005
+ * Copyright (C) 2003 - 2006
  *
  * Matthew D. Hardeman <mhardemn at papersoft.com> 
  * Adapted from the MySQL CDR logger originally by James Sharp 
@@ -64,8 +64,8 @@
 
 AST_MUTEX_DEFINE_STATIC(pgsql_lock);
 
-PGconn		*conn;
-PGresult	*result;
+static PGconn	*conn;
+static PGresult	*result;
 
 static int pgsql_log(struct ast_cdr *cdr)
 {



More information about the asterisk-commits mailing list