Skip to content

Commit 7c67015

Browse files
Clean up remaining non-LeaMDNS diffs from gcc4.8 to gcc7.2 (#6279)
With this change plus the leamdns change, the core will compile unmodified on GCC 4.8 and GCC 7.2, making keeping the two in sync for 3.0 much easier.
1 parent 48ace77 commit 7c67015

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: cores/esp8266/IPAddress.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
#define IP_SET_TYPE_VAL(x,y) do { (void)0; } while (0)
3737
#define IP_ANY_TYPE (&ip_addr_any)
3838
#define IP4_ADDR_ANY IPADDR_ANY
39-
#define IP4_ADDR_ANY4 IPADDR_ANY
39+
#define IP4_ADDR_ANY4 IP_ADDR_ANY
4040
#define IPADDR4_INIT(x) { x }
4141
#define CONST /* nothing: lwIP-v1 does not use const */
4242
#define ip4_addr_netcmp ip_addr_netcmp

Diff for: libraries/ESP8266NetBIOS/ESP8266NetBIOS.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ bool ESP8266NetBIOS::begin(const char *name)
156156
}
157157
_pcb = udp_new();
158158
udp_recv(_pcb, &_s_recv, (void *) this);
159-
err_t err = udp_bind(_pcb, INADDR_ANY, NBNS_PORT);
159+
err_t err = udp_bind(_pcb, (ip_addr_t*)INADDR_ANY, NBNS_PORT);
160160
if(err != ERR_OK) {
161161
end();
162162
return false;

0 commit comments

Comments
 (0)