From a7250eb14270101d4ca580acd8fdcaf7e308e515 Mon Sep 17 00:00:00 2001 From: Matt Kraai Date: Tue, 5 Jan 2010 09:40:54 -0800 Subject: Change uint_t to unsigned int in lib/util Signed-off-by: Stefan Metzmacher --- lib/util/byteorder.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/util/byteorder.h') 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)) -- cgit