From: Roy Marples Date: Tue, 13 Jun 2017 19:09:58 +0000 (+0100) Subject: Use a long constant to avoid a lint error. X-Git-Tag: v7.0.0-rc2~51 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=37236ef8c830c7e09c7947dae4c57e9541e6222c;p=thirdparty%2Fdhcpcd.git Use a long constant to avoid a lint error. --- diff --git a/src/auth.c b/src/auth.c index e0ec38f6..914b8f19 100644 --- a/src/auth.c +++ b/src/auth.c @@ -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