mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-11-22 15:46:14 +01:00
fix compiler warnings
This commit is contained in:
parent
6a35daab6b
commit
9786ea9b3a
|
@ -99,7 +99,7 @@ int MDNS::addServiceRecord(const char* name, uint16_t port, MDNSServiceProtocol_
|
||||||
}
|
}
|
||||||
|
|
||||||
static char dns_rr_services[] = "\x09_services\x07_dns-sd\x04_udp\x05local";
|
static char dns_rr_services[] = "\x09_services\x07_dns-sd\x04_udp\x05local";
|
||||||
static char *dns_rr_tcplocal = "\x04_tcp\x05local";
|
static char dns_rr_tcplocal[] = "\x04_tcp\x05local";
|
||||||
static char *dns_rr_local = dns_rr_tcplocal + dns_rr_tcplocal[0] + 1;
|
static char *dns_rr_local = dns_rr_tcplocal + dns_rr_tcplocal[0] + 1;
|
||||||
|
|
||||||
typedef struct _DNSHeader_t
|
typedef struct _DNSHeader_t
|
||||||
|
|
|
@ -114,7 +114,7 @@ void EthernetInterface::setup()
|
||||||
|
|
||||||
outboundRing=new RingStream(OUTBOUND_RING_SIZE);
|
outboundRing=new RingStream(OUTBOUND_RING_SIZE);
|
||||||
#ifdef DO_MDNS
|
#ifdef DO_MDNS
|
||||||
if (!mdns.begin(Ethernet.localIP(), WIFI_HOSTNAME))
|
if (!mdns.begin(Ethernet.localIP(), (char *)WIFI_HOSTNAME))
|
||||||
DIAG("mdns.begin fail"); // hostname
|
DIAG("mdns.begin fail"); // hostname
|
||||||
mdns.addServiceRecord(WIFI_HOSTNAME "._withrottle", IP_PORT, MDNSServiceTCP);
|
mdns.addServiceRecord(WIFI_HOSTNAME "._withrottle", IP_PORT, MDNSServiceTCP);
|
||||||
mdns.run(); // run it right away to get out info ASAP
|
mdns.run(); // run it right away to get out info ASAP
|
||||||
|
|
Loading…
Reference in New Issue
Block a user