]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Our official sized unsigned types are u_int<size>_t
authorhno <>
Wed, 14 Nov 2001 04:12:36 +0000 (04:12 +0000)
committerhno <>
Wed, 14 Nov 2001 04:12:36 +0000 (04:12 +0000)
include/ntlmauth.h

index 16659dd10c9412dd606710e1dd2cd0b79b8217ec..f61f49e469ccdda67696fbf00f26c27d8767410a 100644 (file)
@@ -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 * * * * * * *
  *
 #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.