mdns: use an u8_t instead of an enum for mdns_hos::probing_state

This saves some bytes only, but it is actually more common in lwip code
This commit is contained in:
Simon Goldschmidt 2018-06-28 21:56:59 +02:00
parent 11e82e5355
commit 814341a6ed

View File

@ -137,11 +137,9 @@ static mdns_name_result_cb_t mdns_name_result_cb;
/* Lookup for text info on service instance */ /* Lookup for text info on service instance */
#define REPLY_SERVICE_TXT 0x80 #define REPLY_SERVICE_TXT 0x80
typedef enum { #define MDNS_PROBING_NOT_STARTED 0
MDNS_PROBING_NOT_STARTED, #define MDNS_PROBING_ONGOING 1
MDNS_PROBING_ONGOING, #define MDNS_PROBING_COMPLETE 2
MDNS_PROBING_COMPLETE,
} mdns_probing_state;
static const char *dnssd_protos[] = { static const char *dnssd_protos[] = {
"_udp", /* DNSSD_PROTO_UDP */ "_udp", /* DNSSD_PROTO_UDP */
@ -179,7 +177,7 @@ struct mdns_host {
/** Number of probes sent for the current name */ /** Number of probes sent for the current name */
u8_t probes_sent; u8_t probes_sent;
/** State in probing sequence */ /** State in probing sequence */
mdns_probing_state probing_state; u8_t probing_state;
}; };
/** Information about received packet */ /** Information about received packet */