[netfilter-cvslog] r6421 - branches/ulog/ulogd2/output/pgsql

laforge at netfilter.org laforge at netfilter.org
Fri Jan 20 11:12:08 CET 2006


Author: laforge at netfilter.org
Date: 2006-01-20 11:12:06 +0100 (Fri, 20 Jan 2006)
New Revision: 6421

Modified:
   branches/ulog/ulogd2/output/pgsql/ulogd_output_PGSQL.c
Log:
port is an integer value


Modified: branches/ulog/ulogd2/output/pgsql/ulogd_output_PGSQL.c
===================================================================
--- branches/ulog/ulogd2/output/pgsql/ulogd_output_PGSQL.c	2006-01-16 00:01:35 UTC (rev 6420)
+++ branches/ulog/ulogd2/output/pgsql/ulogd_output_PGSQL.c	2006-01-20 10:12:06 UTC (rev 6421)
@@ -64,10 +64,12 @@
 		{
 			.key = "port",
 			.type = CONFIG_TYPE_INT,
+			.options = CONFIG_OPT_NONE,
 		},
 		{
 			.key = "schema", 
 			.type = CONFIG_TYPE_STRING,
+			.options = CONFIG_OPT_NONE,
 			.u.string = "public",
 		},
 	},
@@ -216,7 +218,7 @@
 	int len;
 	char *connstr;
 	char *server = host_ce(upi->config_kset).u.string;
-	char *port = port_ce(upi->config_kset).u.string;
+	char *port = port_ce(upi->config_kset).u.value;
 	char *user = user_ce(upi->config_kset).u.string;
 	char *pass = pass_ce(upi->config_kset).u.string;
 	char *db = db_ce(upi->config_kset).u.string;




More information about the netfilter-cvslog mailing list