Skip to content

Commit

Permalink
pnet: Fix INADDR_ANY and INADDR_BROADCAST
Browse files Browse the repository at this point in the history
INADDR_ANY and INADDR_BROADCAST should not be initializers.
  • Loading branch information
sgso committed Jul 14, 2014
1 parent a0c4354 commit af3c54e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sys/posix/pnet/include/netinet/in.h
Expand Up @@ -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()
Expand Down

0 comments on commit af3c54e

Please sign in to comment.