Applied, thanks!

Zhaoming Luo, le sam. 07 déc. 2024 12:52:45 +0800, a ecrit:
> ---
>  lwip/options.c              | 2 +-
>  lwip/pfinet-ops.c           | 2 +-
>  lwip/port/netif/hurdethif.c | 2 +-
>  lwip/port/netif/hurdtunif.c | 2 +-
>  4 files changed, 4 insertions(+), 4 deletions(-)
> 
> 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)
> 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)
>       {
> 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;
>  
> 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)
> -- 
> 2.45.2
> 
> 

-- 
Samuel
<T> csp.tar.gz:     ascii text
 -+- #ens-mim - vive les browsers qui prennent des initiatives à la con -+-

Reply via email to