diff --git a/EXmDNS.cpp b/EXmDNS.cpp index 6cc1090..62511a2 100644 --- a/EXmDNS.cpp +++ b/EXmDNS.cpp @@ -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_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; typedef struct _DNSHeader_t diff --git a/EthernetInterface.cpp b/EthernetInterface.cpp index ecdfefb..cd89c0e 100644 --- a/EthernetInterface.cpp +++ b/EthernetInterface.cpp @@ -114,7 +114,7 @@ void EthernetInterface::setup() outboundRing=new RingStream(OUTBOUND_RING_SIZE); #ifdef DO_MDNS - if (!mdns.begin(Ethernet.localIP(), WIFI_HOSTNAME)) + if (!mdns.begin(Ethernet.localIP(), (char *)WIFI_HOSTNAME)) DIAG("mdns.begin fail"); // hostname mdns.addServiceRecord(WIFI_HOSTNAME "._withrottle", IP_PORT, MDNSServiceTCP); mdns.run(); // run it right away to get out info ASAP