]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Use a long constant to avoid a lint error.
authorRoy Marples <roy@marples.name>
Tue, 13 Jun 2017 19:09:58 +0000 (20:09 +0100)
committerRoy Marples <roy@marples.name>
Tue, 13 Jun 2017 19:09:58 +0000 (20:09 +0100)
src/auth.c

index e0ec38f6e22cfa56d7b75b77abed362805c2c738..914b8f1918e1206c38660969b6dcc14a62c14d3c 100644 (file)
@@ -50,7 +50,7 @@
 #ifndef htonll
 #if (BYTE_ORDER == LITTLE_ENDIAN)
 #define        htonll(x)       ((uint64_t)htonl((uint32_t)((x) >> 32)) | \
-                        (uint64_t)htonl((uint32_t)((x) & 0xffffffff)) << 32)
+                        (uint64_t)htonl((uint32_t)((x) & 0x00000000ffffffffULL)) << 32)
 #else  /* (BYTE_ORDER == LITTLE_ENDIAN) */
 #define        htonll(x)       (x)
 #endif
@@ -59,7 +59,7 @@
 #ifndef ntohll
 #if (BYTE_ORDER == LITTLE_ENDIAN)
 #define        ntohll(x)       ((uint64_t)ntohl((uint32_t)((x) >> 32)) | \
-                        (uint64_t)ntohl((uint32_t)((x) & 0xffffffff)) << 32)
+                        (uint64_t)ntohl((uint32_t)((x) & 0x00000000ffffffffULL)) << 32)
 #else  /* (BYTE_ORDER == LITTLE_ENDIAN) */
 #define        ntohll(x)       (x)
 #endif