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:
Axel Lin 2018-01-05 09:52:08 +08:00 committed by goldsimon
parent e415151cf2
commit da2478b761

View File

@ -379,7 +379,7 @@ struct netif {
#else /* LWIP_SINGLE_NETIF */
/** The list of network interfaces. */
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 */
/** The default network interface. */
extern struct netif *netif_default;