aboutsummaryrefslogtreecommitdiff
path: root/lwip/port/netif/hurdtunif.c
diff options
context:
space:
mode:
authorZhaoming Luo <zhmingluo@163.com>2024-12-07 12:52:45 +0800
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2024-12-07 10:10:16 +0100
commit382b7d67aee8bd671a46a33d47eca9f99464cad4 (patch)
tree457739a368f6e5e5f82f2cb933343688495d95d4 /lwip/port/netif/hurdtunif.c
parentb21b03ca624b89caeedfe58430cea4b40317d39f (diff)
downloadhurd-382b7d67aee8bd671a46a33d47eca9f99464cad4.tar.gz
hurd-382b7d67aee8bd671a46a33d47eca9f99464cad4.tar.bz2
hurd-382b7d67aee8bd671a46a33d47eca9f99464cad4.zip
Code refactor
Message-ID: <20241207045245.1457-1-zhmingluo@163.com>
Diffstat (limited to 'lwip/port/netif/hurdtunif.c')
-rw-r--r--lwip/port/netif/hurdtunif.c2
1 files changed, 1 insertions, 1 deletions
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)