mdns: remove duplicate acd_state_enum_t declaration

Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
This commit is contained in:
David Girault 2019-06-03 13:33:38 +02:00 committed by Simon Goldschmidt
parent aa79b90d3c
commit cd278c426d
2 changed files with 3 additions and 6 deletions

View File

@ -2595,10 +2595,7 @@ mdns_resp_announce(struct netif *netif)
/* Do not announce if the mdns responder is off, waiting to probe, probing or
* waiting to announce. */
if (!( (mdns->state == MDNS_STATE_OFF)
|| (mdns->state == MDNS_STATE_PROBE_WAIT)
|| (mdns->state == MDNS_STATE_PROBING)
|| (mdns->state == MDNS_STATE_ANNOUNCE_WAIT))) {
if (mdns->state >= MDNS_STATE_ANNOUNCING) {
/* Announce on IPv6 and IPv4 */
#if LWIP_IPV6
mdns_announce(netif, &v6group);

View File

@ -195,7 +195,7 @@ typedef enum {
MDNS_STATE_ANNOUNCING,
/* Probing and announcing completed */
MDNS_STATE_COMPLETE
} acd_state_enum_t;
} mdns_resp_state_enum_t;
/** Description of a host/netif */
struct mdns_host {
@ -206,7 +206,7 @@ struct mdns_host {
/** Number of probes/announces sent for the current name */
u8_t sent_num;
/** State of the mdns responder */
acd_state_enum_t state;
mdns_resp_state_enum_t state;
#if LWIP_IPV4
/** delayed msg struct for IPv4 */
struct mdns_delayed_msg ipv4;