diff options
author | jhb <jhb@FreeBSD.org> | 2001-01-23 21:32:02 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2001-01-23 21:32:02 +0000 |
commit | 9a868ba306394e8db18feb8fceabe43e1e8bf254 (patch) | |
tree | 4ebc5280fa675253f48160387aed928d16e08371 /sys/compat | |
parent | 0742fd6c671f70d25a972540ce9099cc61f236c1 (diff) | |
download | FreeBSD-src-9a868ba306394e8db18feb8fceabe43e1e8bf254.zip FreeBSD-src-9a868ba306394e8db18feb8fceabe43e1e8bf254.tar.gz |
Use queue macros.
Diffstat (limited to 'sys/compat')
-rw-r--r-- | sys/compat/svr4/svr4_sockio.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/compat/svr4/svr4_sockio.c b/sys/compat/svr4/svr4_sockio.c index 7217091..b96be4d 100644 --- a/sys/compat/svr4/svr4_sockio.c +++ b/sys/compat/svr4/svr4_sockio.c @@ -101,13 +101,12 @@ svr4_sock_ioctl(fp, p, retval, fd, cmd, data) * entry per physical interface? */ - for (ifp = ifnet.tqh_first; - ifp != 0; ifp = ifp->if_link.tqe_next) - if ((ifa = ifp->if_addrhead.tqh_first) == NULL) + TAILQ_FOREACH(ifp, &ifnet, if_link) + if (TAILQ_FIRST(&ifp->if_addrhead) == NULL) ifnum++; else - for (;ifa != NULL; - ifa = ifa->ifa_link.tqe_next) + TAILQ_FOREACH(ifa, &ifp->if_addrhead, + ifa_link) ifnum++; |