[asterisk-commits] [svn-commits] trunk r17740 - /trunk/res/res_config_pgsql.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Wed Apr 5 23:55:41 MST 2006


Author: oej
Date: Thu Apr  6 01:55:38 2006
New Revision: 17740

URL: http://svn.digium.com/view/asterisk?rev=17740&view=rev
Log:
Issue #6893 - Compiler warnings for PostgreSQL ARA driver

Modified:
    trunk/res/res_config_pgsql.c

Modified: trunk/res/res_config_pgsql.c
URL: http://svn.digium.com/view/asterisk/trunk/res/res_config_pgsql.c?rev=17740&r1=17739&r2=17740&view=diff
==============================================================================
--- trunk/res/res_config_pgsql.c (original)
+++ trunk/res/res_config_pgsql.c Thu Apr  6 01:55:38 2006
@@ -57,8 +57,6 @@
 static int parse_config(void);
 static int pgsql_reconnect(const char *database);
 static int realtime_pgsql_status(int fd, int argc, char **argv);
-
-STANDARD_LOCAL_USER;
 
 LOCAL_USER_DECL;
 
@@ -428,13 +426,10 @@
 {
 	PGresult *result = NULL;
 	long num_rows;
-	struct ast_config *new;
-	struct ast_variable *cur_v, *new_v;
-	struct ast_category *cur_cat, *new_cat;
+	struct ast_variable *new_v;
+	struct ast_category *cur_cat = NULL;
 	char sql[250] = "";
 	char last[80] = "";
-	int cat_started = 0;
-	int var_started = 0;
 	int last_cat_metric = 0;
 
 	last[0] = '\0';
@@ -483,7 +478,7 @@
 	  int rowIndex=0;
 	  char** fieldnames=NULL;
 
-	  ast_log(LOG_DEBUG, "Postgresql RealTime: Found %d rows.\n", num_rows);
+	  ast_log(LOG_DEBUG, "Postgresql RealTime: Found %ld rows.\n", num_rows);
 	  
 	  fieldnames=malloc(numFields*sizeof(char*));
 	  if (!fieldnames) {

_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

svn-commits mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/svn-commits


More information about the asterisk-commits mailing list