summaryrefslogtreecommitdiff
path: root/dist
diff options
context:
space:
mode:
authordarrenr <darrenr@NetBSD.org>2012-02-02 19:18:51 +0000
committerdarrenr <darrenr@NetBSD.org>2012-02-02 19:18:51 +0000
commitaba8f6da96497a21a1f02467daed01d95976f781 (patch)
tree50be838cd50fd1c44a0382b3c1c3390391eae16a /dist
parent5b8791d91f2fc9dd974b3a540753b38ecd72e19f (diff)
Compiler warning on a for loop that does not terminate correctly
Diffstat (limited to 'dist')
-rw-r--r--dist/ipf/tools/ipfcomp.c4
1 files 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)