mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-25 00:14:02 +00:00
minor whitespace cleanups only
This commit is contained in:
parent
d02bc6481f
commit
ca961b9bc2
@ -396,9 +396,9 @@ netif_add(struct netif *netif,
|
||||
ip4_addr_debug_print(NETIF_DEBUG, gw);
|
||||
#endif /* LWIP_IPV4 */
|
||||
LWIP_DEBUGF(NETIF_DEBUG, ("\n"));
|
||||
|
||||
|
||||
netif_invoke_ext_callback(netif, LWIP_NSC_NETIF_ADDED, NULL);
|
||||
|
||||
|
||||
return netif;
|
||||
}
|
||||
|
||||
@ -663,7 +663,7 @@ netif_set_netmask(struct netif *netif, const ip4_addr_t *netmask)
|
||||
ip_addr_copy(old_addr, *netif_ip_netmask4(netif));
|
||||
args.ipv4_nm_changed.old_address = &old_addr;
|
||||
#endif
|
||||
|
||||
|
||||
/* address is actually being changed? */
|
||||
if (ip4_addr_cmp(safe_netmask, netif_ip4_netmask(netif)) == 0) {
|
||||
mib2_remove_route_ip4(0, netif);
|
||||
@ -1489,7 +1489,7 @@ netif_get_by_index(u8_t idx)
|
||||
}
|
||||
}
|
||||
|
||||
return NULL;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -1549,11 +1549,10 @@ void netif_add_ext_callback(netif_ext_callback_t* callback, netif_ext_callback_f
|
||||
void netif_invoke_ext_callback(struct netif* netif, netif_nsc_reason_t reason, const netif_ext_callback_args_t* args)
|
||||
{
|
||||
netif_ext_callback_t* callback = ext_callback;
|
||||
|
||||
|
||||
LWIP_ASSERT("netif must be != NULL", netif != NULL);
|
||||
|
||||
while (callback != NULL)
|
||||
{
|
||||
|
||||
while (callback != NULL) {
|
||||
callback->callback_fn(netif, reason, args);
|
||||
callback = callback->next;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user