From 74ad630be147c9f61bf3faee166a415edea4f4fc Mon Sep 17 00:00:00 2001 From: Eric Leblond Date: Thu, 31 Jul 2008 10:49:08 +0200 Subject: cleanup: fix warning due to lack of parenthesis Fix gcc warning related to the lack of parenthesis. Signed-off-by: Eric Leblond Signed-off-by: Pablo Neira Ayuso --- output/mysql/ulogd_output_MYSQL.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/output/mysql/ulogd_output_MYSQL.c b/output/mysql/ulogd_output_MYSQL.c index 562424b..94c8c9a 100644 --- a/output/mysql/ulogd_output_MYSQL.c +++ b/output/mysql/ulogd_output_MYSQL.c @@ -140,7 +140,7 @@ static int get_columns_mysql(struct ulogd_pluginstance *upi) memset(upi->input.keys, 0, sizeof(struct ulogd_key) * upi->input.num_keys); - for (i = 0; field = mysql_fetch_field(result); i++) { + for (i = 0; (field = mysql_fetch_field(result)); i++) { char buf[ULOGD_MAX_KEYLEN+1]; char *underscore; -- cgit v1.2.3