From: hno <> Date: Wed, 14 Nov 2001 04:12:36 +0000 (+0000) Subject: Our official sized unsigned types are u_int_t X-Git-Tag: SQUID_3_0_PRE1~1299 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a198d2cab2463832c5ce9487c22c4b8c271e7c24;p=thirdparty%2Fsquid.git Our official sized unsigned types are u_int_t --- diff --git a/include/ntlmauth.h b/include/ntlmauth.h index 16659dd10c..f61f49e469 100644 --- a/include/ntlmauth.h +++ b/include/ntlmauth.h @@ -1,5 +1,5 @@ /* - * $Id: ntlmauth.h,v 1.7 2001/10/17 13:30:49 hno Exp $ + * $Id: ntlmauth.h,v 1.8 2001/11/13 21:12:36 hno Exp $ * * * * * * * * * Legal stuff * * * * * * * * @@ -70,10 +70,10 @@ #define bswap16(x) bswap_16(x) #define bswap32(x) bswap_32(x) #else /* HAVE_BISTWAP_H */ -#define bswap16(x) (((((uint16_t)x) >> 8) & 0xff) | ((((uint16_t)x) & 0xff) << 8)) +#define bswap16(x) (((((u_int16_t)x) >> 8) & 0xff) | ((((u_int16_t)x) & 0xff) << 8)) #define bswap32(x) \ - (((((uint32_t)x) & 0xff000000) >> 24) | ((((uint32_t)x) & 0x00ff0000) >> 8) | \ - ((((uint32_t)x) & 0x0000ff00) << 8) | ((((uint32_t)x) & 0x000000ff) << 24)) + (((((u_int32_t)x) & 0xff000000) >> 24) | ((((u_int32_t)x) & 0x00ff0000) >> 8) | \ + ((((u_int32_t)x) & 0x0000ff00) << 8) | ((((u_int32_t)x) & 0x000000ff) << 24)) #endif /* HAVE_BITSWAP_H */ /* Used internally. Microsoft seems to think this is right, I believe them.