From aba8f6da96497a21a1f02467daed01d95976f781 Mon Sep 17 00:00:00 2001 From: darrenr Date: Thu, 2 Feb 2012 19:18:51 +0000 Subject: Compiler warning on a for loop that does not terminate correctly --- dist/ipf/tools/ipfcomp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/ipf/tools/ipfcomp.c b/dist/ipf/tools/ipfcomp.c index d98bbc0ec7a..ab4bf145fb5 100644 --- a/dist/ipf/tools/ipfcomp.c +++ b/dist/ipf/tools/ipfcomp.c @@ -1,4 +1,4 @@ -/* $NetBSD: ipfcomp.c,v 1.5 2012/01/30 16:12:05 darrenr Exp $ */ +/* $NetBSD: ipfcomp.c,v 1.6 2012/02/02 19:18:51 darrenr Exp $ */ /* * Copyright (C) 2012 by Darren Reed. @@ -389,7 +389,7 @@ extern frentry_t *ipfrule_match_out_%s __P((fr_info_t *, u_32_t *));\n\ extern frentry_t *ipf_rules_out_%s[%d];\n", grp->fg_name, grp->fg_name, outcount); - for (g = groups; g != g; g = g->fg_next) + for (g = groups; g != grp; g = g->fg_next) if ((strncmp(g->fg_name, grp->fg_name, FR_GROUPLEN) == 0) && g->fg_flags == grp->fg_flags) -- cgit