summaryrefslogtreecommitdiff
path: root/lib/util/byteorder.h
diff options
context:
space:
mode:
authorMatt Kraai <mkraai@beckman.com>2010-01-05 09:40:54 -0800
committerStefan Metzmacher <metze@samba.org>2010-02-02 07:18:17 +0100
commita7250eb14270101d4ca580acd8fdcaf7e308e515 (patch)
tree881f90bc89ddbe666c8ff8ea0ff5978bf112bc1e /lib/util/byteorder.h
parent2cb2d5317f8428b5eaef2365c815aa34739a80b5 (diff)
downloadsamba-a7250eb14270101d4ca580acd8fdcaf7e308e515.tar.gz
samba-a7250eb14270101d4ca580acd8fdcaf7e308e515.tar.bz2
samba-a7250eb14270101d4ca580acd8fdcaf7e308e515.zip
Change uint_t to unsigned int in lib/util
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'lib/util/byteorder.h')
-rw-r--r--lib/util/byteorder.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/util/byteorder.h b/lib/util/byteorder.h
index b860dea791..f0a000a063 100644
--- a/lib/util/byteorder.h
+++ b/lib/util/byteorder.h
@@ -54,7 +54,7 @@ that don't have any int types that are 2 bytes long)
You do this:
#define CVAL(buf,pos) (((uint8_t *)(buf))[pos])
-#define PVAL(buf,pos) ((uint_t)CVAL(buf,pos))
+#define PVAL(buf,pos) ((unsigned int)CVAL(buf,pos))
#define SVAL(buf,pos) (PVAL(buf,pos)|PVAL(buf,(pos)+1)<<8)
then to extract a uint16_t value at offset 25 in a buffer you do this:
@@ -144,7 +144,7 @@ static __inline__ void st_le32(uint32_t *addr, const uint32_t val)
#define CAREFUL_ALIGNMENT 1
#endif
-#define CVAL(buf,pos) ((uint_t)(((const uint8_t *)(buf))[pos]))
+#define CVAL(buf,pos) ((unsigned int)(((const uint8_t *)(buf))[pos]))
#define CVAL_NC(buf,pos) (((uint8_t *)(buf))[pos]) /* Non-const version of CVAL */
#define PVAL(buf,pos) (CVAL(buf,pos))
#define SCVAL(buf,pos,val) (CVAL_NC(buf,pos) = (val))