From f6e3418ca14632d7b41df125f54cd2198f8760aa Mon Sep 17 00:00:00 2001 From: laforge Date: Thu, 8 Jan 2004 00:35:12 +0000 Subject: add 'tmpstr' variable declaration again... it is needed for the --log-ip-as-string option (which I never liked anyway ;)) --- ulogd/mysql/ulogd_MYSQL.c | 5 +++-- ulogd/pgsql/ulogd_PGSQL.c | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/ulogd/mysql/ulogd_MYSQL.c b/ulogd/mysql/ulogd_MYSQL.c index 1e6da79..64405c3 100644 --- a/ulogd/mysql/ulogd_MYSQL.c +++ b/ulogd/mysql/ulogd_MYSQL.c @@ -1,4 +1,4 @@ -/* ulogd_MYSQL.c, Version $Revision: 1.14 $ +/* ulogd_MYSQL.c, Version $Revision: 1.15 $ * * ulogd output plugin for logging to a MySQL database * @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * - * $Id: ulogd_MYSQL.c,v 1.14 2003/09/28 15:19:26 laforge Exp $ + * $Id: ulogd_MYSQL.c,v 1.15 2003/09/29 11:02:40 laforge Exp $ * * 15 May 2001, Alex Janssen : * Added a compability option for older MySQL-servers, which @@ -90,6 +90,7 @@ static int _mysql_output(ulog_iret_t *result) { struct _field *f; ulog_iret_t *res; + char *tmpstr; /* need this for --log-ip-as-string */ stmt_ins = stmt_val; diff --git a/ulogd/pgsql/ulogd_PGSQL.c b/ulogd/pgsql/ulogd_PGSQL.c index 6d2523b..eb87c59 100644 --- a/ulogd/pgsql/ulogd_PGSQL.c +++ b/ulogd/pgsql/ulogd_PGSQL.c @@ -1,4 +1,4 @@ -/* ulogd_PGSQL.c, Version $Revision: 1.7 $ +/* ulogd_PGSQL.c, Version $Revision: 1.8 $ * * ulogd output plugin for logging to a PGSQL database * @@ -70,7 +70,8 @@ static int _pgsql_output(ulog_iret_t *result) { struct _field *f; ulog_iret_t *res; - PGresult *pgres; + PGresult *pgres; + char *tmpstr; /* need this for --log-ip-as-string */ stmt_ins = stmt_val; -- cgit v1.2.3