[ULOGD2 PATCH 10/11] Make gcc happy.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Fix gcc warning related to the lack of parenthesis.

Signed-off-by: Eric Leblond <eric@xxxxxx>
---
 output/mysql/ulogd_output_MYSQL.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

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;
 
-- 
1.5.4.3

--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux