diff options
author | Zhaoming Luo <zhmingluo@163.com> | 2024-12-07 12:52:45 +0800 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2024-12-07 10:10:16 +0100 |
commit | 382b7d67aee8bd671a46a33d47eca9f99464cad4 (patch) | |
tree | 457739a368f6e5e5f82f2cb933343688495d95d4 /lwip/pfinet-ops.c | |
parent | b21b03ca624b89caeedfe58430cea4b40317d39f (diff) | |
download | hurd-382b7d67aee8bd671a46a33d47eca9f99464cad4.tar.gz hurd-382b7d67aee8bd671a46a33d47eca9f99464cad4.tar.bz2 hurd-382b7d67aee8bd671a46a33d47eca9f99464cad4.zip |
Code refactor
Message-ID: <20241207045245.1457-1-zhmingluo@163.com>
Diffstat (limited to 'lwip/pfinet-ops.c')
-rw-r--r-- | lwip/pfinet-ops.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |