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/pfinet-ops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lwip/pfinet-ops.c') diff --git a/lwip/pfinet-ops.c b/lwip/pfinet-ops.c index 5be85879..d5afb94f 100644 --- a/lwip/pfinet-ops.c +++ b/lwip/pfinet-ops.c @@ -50,7 +50,7 @@ dev_ifconf (struct ifconf *ifc) ifr = ifc->ifc_req; len = ifc->ifc_len; saddr = (struct sockaddr_in *) &ifr->ifr_addr; - for (netif = netif_list; netif != 0; netif = netif->next) + NETIF_FOREACH(netif) { if (ifc->ifc_req != 0) { -- cgit v1.2.3