mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-08-26 16:12:55 +00:00
Reformat mdns.c using astylerc
This commit is contained in:
parent
014420bfa0
commit
914a20728e
@ -1484,8 +1484,9 @@ mdns_announce(struct netif *netif, const ip_addr_t *destination)
|
|||||||
announce.netif = netif;
|
announce.netif = netif;
|
||||||
announce.cache_flush = 1;
|
announce.cache_flush = 1;
|
||||||
#if LWIP_IPV4
|
#if LWIP_IPV4
|
||||||
if (!ip4_addr_isany_val(*netif_ip4_addr(netif)))
|
if (!ip4_addr_isany_val(*netif_ip4_addr(netif))) {
|
||||||
announce.host_replies = REPLY_HOST_A | REPLY_HOST_PTR_V4;
|
announce.host_replies = REPLY_HOST_A | REPLY_HOST_PTR_V4;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
#if LWIP_IPV6
|
#if LWIP_IPV6
|
||||||
for (i = 0; i < LWIP_IPV6_NUM_ADDRESSES; ++i) {
|
for (i = 0; i < LWIP_IPV6_NUM_ADDRESSES; ++i) {
|
||||||
@ -1865,8 +1866,7 @@ mdns_netif_ext_status_callback(struct netif* netif, netif_nsc_reason_t reason, c
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (reason)
|
switch (reason) {
|
||||||
{
|
|
||||||
case LWIP_NSC_STATUS_CHANGED:
|
case LWIP_NSC_STATUS_CHANGED:
|
||||||
if (args->status_changed.state != 0) {
|
if (args->status_changed.state != 0) {
|
||||||
mdns_resp_netif_settings_changed(netif);
|
mdns_resp_netif_settings_changed(netif);
|
||||||
|
Loading…
Reference in New Issue
Block a user