1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-11-26 09:36:13 +01:00

fix compiler warnings

This commit is contained in:
Harald Barth 2024-11-10 20:25:20 +01:00
parent 6a35daab6b
commit 9786ea9b3a
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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