Skip to content

Commit

Permalink
fix compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
habazut committed Nov 10, 2024
1 parent 6a35daa commit 9786ea9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion EXmDNS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion EthernetInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9786ea9

Please sign in to comment.