aboutsummaryrefslogtreecommitdiff
path: root/lwip/port
diff options
context:
space:
mode:
Diffstat (limited to 'lwip/port')
-rw-r--r--lwip/port/netif/hurdethif.c2
-rw-r--r--lwip/port/netif/hurdtunif.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/lwip/port/netif/hurdethif.c b/lwip/port/netif/hurdethif.c
index b55c7edb..f2103566 100644
--- a/lwip/port/netif/hurdethif.c
+++ b/lwip/port/netif/hurdethif.c
@@ -402,7 +402,7 @@ hurdethif_demuxer (mach_msg_header_t * inp, mach_msg_header_t * outp)
else
local_port = inp->msgh_local_port;
- for (netif = netif_list; netif; netif = netif->next)
+ NETIF_FOREACH(netif)
if (local_port == netif_get_state (netif)->readptname)
break;
diff --git a/lwip/port/netif/hurdtunif.c b/lwip/port/netif/hurdtunif.c
index da4d5cbe..456dd297 100644
--- a/lwip/port/netif/hurdtunif.c
+++ b/lwip/port/netif/hurdtunif.c
@@ -296,7 +296,7 @@ check_open_hook (struct trivfs_control *cntl, struct iouser *user, int flags)
struct netif *netif;
struct hurdtunif *tunif;
- for (netif = netif_list; netif; netif = netif->next)
+ NETIF_FOREACH(netif)
{
tunif = (struct hurdtunif *) netif_get_state (netif);
if (tunif->cntl == cntl)