Module Name: src Committed By: darrenr Date: Thu Feb 2 19:18:51 UTC 2012
Modified Files: src/dist/ipf/tools: ipfcomp.c Log Message: Compiler warning on a for loop that does not terminate correctly To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/dist/ipf/tools/ipfcomp.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/dist/ipf/tools/ipfcomp.c diff -u src/dist/ipf/tools/ipfcomp.c:1.5 src/dist/ipf/tools/ipfcomp.c:1.6 --- src/dist/ipf/tools/ipfcomp.c:1.5 Mon Jan 30 16:12:05 2012 +++ src/dist/ipf/tools/ipfcomp.c Thu Feb 2 19:18:51 2012 @@ -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 _ 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)