mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-25 18:14:53 +00:00
netif: Enclosing macro argument in parentheses for NETIF_FOREACH
Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: goldsimon <goldsimon@gmx.de>
This commit is contained in:
parent
e415151cf2
commit
da2478b761
@ -379,7 +379,7 @@ struct netif {
|
|||||||
#else /* LWIP_SINGLE_NETIF */
|
#else /* LWIP_SINGLE_NETIF */
|
||||||
/** The list of network interfaces. */
|
/** The list of network interfaces. */
|
||||||
extern struct netif *netif_list;
|
extern struct netif *netif_list;
|
||||||
#define NETIF_FOREACH(netif) for (netif = netif_list; netif != NULL; netif = netif->next)
|
#define NETIF_FOREACH(netif) for ((netif) = netif_list; (netif) != NULL; (netif) = (netif)->next)
|
||||||
#endif /* LWIP_SINGLE_NETIF */
|
#endif /* LWIP_SINGLE_NETIF */
|
||||||
/** The default network interface. */
|
/** The default network interface. */
|
||||||
extern struct netif *netif_default;
|
extern struct netif *netif_default;
|
||||||
|
Loading…
Reference in New Issue
Block a user