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/options.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lwip/options.c') diff --git a/lwip/options.c b/lwip/options.c index 2cfad44d..a22be26c 100644 --- a/lwip/options.c +++ b/lwip/options.c @@ -310,7 +310,7 @@ trivfs_append_args (struct trivfs_control * fsys, char **argz, i.s_addr = (addr); \ ADD_OPT ("--%s=%s", name, inet_ntoa (i)); } while (0) - for (netif = netif_list; netif != 0; netif = netif->next) + NETIF_FOREACH(netif) { /* Skip the loopback interface */ if (netif_get_state (netif)->type == ARPHRD_LOOPBACK) -- cgit v1.2.3