util-src/net.c
changeset 10641 aa304109fa1b
parent 10484 94cacf9fd0ae
child 10925 6eb5d2bb11af
--- 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;