Software /
code /
prosody
Changeset
10637:aa304109fa1b
util.net: Fix signedness warning on ARM
net.c:87:56: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare]
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Thu, 30 Jan 2020 14:22:21 +0100 |
parents | 10636:a9c975a0f113 |
children | 10638:92918212ee83 |
files | util-src/net.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/util-src/net.c Tue Jan 28 12:46:59 2020 +0000 +++ b/util-src/net.c Thu Jan 30 14:22:21 2020 +0100 @@ -46,8 +46,8 @@ static int lc_local_addresses(lua_State *L) { #ifndef _WIN32 /* Link-local IPv4 addresses; see RFC 3927 and RFC 5735 */ - const long ip4_linklocal = htonl(0xa9fe0000); /* 169.254.0.0 */ - const long ip4_mask = htonl(0xffff0000); + const uint32_t ip4_linklocal = htonl(0xa9fe0000); /* 169.254.0.0 */ + const uint32_t ip4_mask = htonl(0xffff0000); struct ifaddrs *addr = NULL, *a; #endif int n = 1;