diff options
author | Bret Lambert <blambert@cvs.openbsd.org> | 2008-06-11 04:52:28 +0000 |
---|---|---|
committer | Bret Lambert <blambert@cvs.openbsd.org> | 2008-06-11 04:52:28 +0000 |
commit | d5fd8ef27566a1cc60baba9cf6624cc6e82098b7 (patch) | |
tree | 707b59d209d9d71dd13f5f615e37d108ce76106f /sys/nfs/nfs_boot.c | |
parent | 756bea63ce1503e31fa7dd33982153bc7c867b83 (diff) |
Canonical for() -> queue.h FOREACH macro conversions.
Also, it is historical practice to #include <sys/queue.h>
when using queue.h macros.
ok thib@ krw@
special thanks to krw@ for reminders vice violence
Diffstat (limited to 'sys/nfs/nfs_boot.c')
-rw-r--r-- | sys/nfs/nfs_boot.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/nfs/nfs_boot.c b/sys/nfs/nfs_boot.c index 22d017c2ff4..f0bb778b332 100644 --- a/sys/nfs/nfs_boot.c +++ b/sys/nfs/nfs_boot.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs_boot.c,v 1.23 2008/05/27 04:30:50 deraadt Exp $ */ +/* $OpenBSD: nfs_boot.c,v 1.24 2008/06/11 04:52:27 blambert Exp $ */ /* $NetBSD: nfs_boot.c,v 1.26 1996/05/07 02:51:25 thorpej Exp $ */ /* @@ -39,6 +39,7 @@ #include <sys/reboot.h> #include <sys/socket.h> #include <sys/socketvar.h> +#include <sys/queue.h> #include <net/if.h> #include <net/route.h> @@ -142,8 +143,7 @@ nfs_boot_init(nd, procp) if (nfsbootdevname) ifp = ifunit(nfsbootdevname); else { - for (ifp = TAILQ_FIRST(&ifnet); ifp != NULL; - ifp = TAILQ_NEXT(ifp, if_list)) { + TAILQ_FOREACH(ifp, &ifnet, if_list) { if ((ifp->if_flags & (IFF_LOOPBACK|IFF_POINTOPOINT)) == 0) break; |