diff options
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2020-01-30 14:22:21 +0100 |
---|---|---|
committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2020-01-30 14:22:21 +0100 |
commit | 61789d01d9b260ee0201fe27f6fb71fc7507971e (patch) | |
tree | 0310688fd5561d7b3b8a1d2668b215ce1d366c8b | |
parent | 43a5cfe0bc34a0dee2cfe255a0f0f909204b45b7 (diff) | |
download | prosody-61789d01d9b260ee0201fe27f6fb71fc7507971e.tar.gz prosody-61789d01d9b260ee0201fe27f6fb71fc7507971e.zip |
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]
-rw-r--r-- | util-src/net.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util-src/net.c b/util-src/net.c index d9c6b914..c3b07815 100644 --- a/util-src/net.c +++ b/util-src/net.c @@ -46,8 +46,8 @@ static const char *const type_strings[] = { 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; |