diff options
| author | 2006-03-05 21:48:54 +0000 | |
|---|---|---|
| committer | 2006-03-05 21:48:54 +0000 | |
| commit | 1573508e4a2b79545b4e249a73d6b17aac49719c (patch) | |
| tree | 71ace380f161b052a5a1ed8e427236a217c5ad15 /sys/compat/linux/linux_socket.c | |
| parent | Sprinkle some tabs and a little cleaning. (diff) | |
| download | wireguard-openbsd-1573508e4a2b79545b4e249a73d6b17aac49719c.tar.xz wireguard-openbsd-1573508e4a2b79545b4e249a73d6b17aac49719c.zip | |
Use more queue macros rather than doing it by hand; ok otto@ krw@
Diffstat (limited to 'sys/compat/linux/linux_socket.c')
| -rw-r--r-- | sys/compat/linux/linux_socket.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/compat/linux/linux_socket.c b/sys/compat/linux/linux_socket.c index 9811ff3fe93..976757a5c5c 100644 --- a/sys/compat/linux/linux_socket.c +++ b/sys/compat/linux/linux_socket.c @@ -1,4 +1,4 @@ -/* $OpenBSD: linux_socket.c,v 1.34 2005/11/21 18:16:37 millert Exp $ */ +/* $OpenBSD: linux_socket.c,v 1.35 2006/03/05 21:48:56 miod Exp $ */ /* $NetBSD: linux_socket.c,v 1.14 1996/04/05 00:01:50 christos Exp $ */ /* @@ -1418,12 +1418,10 @@ linux_ioctl_socket(p, v, retval) * Note that we don't actually respect the name in the ifreq * structure, as Linux interface names are all different. */ - for (ifp = ifnet.tqh_first; ifp != 0; - ifp = ifp->if_list.tqe_next) { + TAILQ_FOREACH(ifp, &ifnet, if_list) { if (ifp->if_type != IFT_ETHER) continue; - for (ifa = ifp->if_addrlist.tqh_first; ifa; - ifa = ifa->ifa_list.tqe_next) { + TAILQ_FOREACH(ifa, &ifp->if_addrlist, ifa_list) { if ((sdl = (struct sockaddr_dl *)ifa->ifa_addr) && (sdl->sdl_family == AF_LINK) && (sdl->sdl_type == IFT_ETHER)) { |
