From 9786ea9b3a412df08d97cdaa23da491f2e6176cd Mon Sep 17 00:00:00 2001 From: Harald Barth Date: Sun, 10 Nov 2024 20:25:20 +0100 Subject: [PATCH] fix compiler warnings --- EXmDNS.cpp | 2 +- EthernetInterface.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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