mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
pnet: Fix INADDR_ANY and INADDR_BROADCAST
INADDR_ANY and INADDR_BROADCAST should not be initializers.
This commit is contained in:
parent
a0c435458e
commit
af3c54e3a2
@ -125,12 +125,12 @@ extern const struct sockaddr_in6 in6addr_loopback;
|
||||
/**
|
||||
* IPv4 local host address.
|
||||
*/
|
||||
#define INADDR_ANY {(in_addr_t)0x00000000}
|
||||
#define INADDR_ANY ((in_addr_t)0x00000000)
|
||||
|
||||
/**
|
||||
* IPv4 broadcast address.
|
||||
*/
|
||||
#define INADDR_BROADCAST {(in_addr_t)0xffffffff}
|
||||
#define INADDR_BROADCAST ((in_addr_t)0xffffffff)
|
||||
|
||||
/**
|
||||
* Multicast hop limit option name for getsockopt() or setsockopt()
|
||||
|
Loading…
Reference in New Issue
Block a user