From 382b7d67aee8bd671a46a33d47eca9f99464cad4 Mon Sep 17 00:00:00 2001 From: Zhaoming Luo Date: Sat, 7 Dec 2024 12:52:45 +0800 Subject: Code refactor Message-ID: <20241207045245.1457-1-zhmingluo@163.com> --- lwip/port/netif/hurdethif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lwip/port/netif/hurdethif.c') 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; -- cgit v1.2.3