summaryrefslogtreecommitdiffstats
path: root/sbin/routed/parms.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2009-04-05 14:01:39 +0000
committerphk <phk@FreeBSD.org>2009-04-05 14:01:39 +0000
commit8c0066c04042edc19879610fab48e9dbde8014c5 (patch)
tree941da68a6a83f1d57f1b0b6cf171466b57b6d190 /sbin/routed/parms.c
parente48abfcaf0db4b971f5b49e08c0cc2d1b470e460 (diff)
downloadFreeBSD-src-8c0066c04042edc19879610fab48e9dbde8014c5.zip
FreeBSD-src-8c0066c04042edc19879610fab48e9dbde8014c5.tar.gz
Use <sys/queue.h> to manage the interface list.
Diffstat (limited to 'sbin/routed/parms.c')
-rw-r--r--sbin/routed/parms.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/routed/parms.c b/sbin/routed/parms.c
index 356ac8e..f7cbf9b 100644
--- a/sbin/routed/parms.c
+++ b/sbin/routed/parms.c
@@ -350,7 +350,7 @@ gwkludge(void)
/* After all of the parameter lines have been read,
* apply them to any remote interfaces.
*/
- for (ifp = ifnet; 0 != ifp; ifp = ifp->int_next) {
+ LIST_FOREACH(ifp, &ifnet, int_list) {
get_parms(ifp);
tot_interfaces++;
OpenPOWER on IntegriCloud