From f1e71ed1b95e2d5904b93480f161cde838bc5ae0 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 31 Jul 2003 23:22:21 +0000 Subject: [PATCH] CVAL_NC() doesn't need the (unsigned) fix and breaks the IRIX build Thanks to Herb for pointing this out! (This used to be commit 87ede8d310db10d92b4ff57e67d3b53cbb7697fb) --- source3/include/byteorder.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/include/byteorder.h b/source3/include/byteorder.h index 63696fa8580..0eef5573066 100644 --- a/source3/include/byteorder.h +++ b/source3/include/byteorder.h @@ -106,7 +106,7 @@ it also defines lots of intermediate macros, just ignore those :-) #endif #define CVAL(buf,pos) ((unsigned)(((const unsigned char *)(buf))[pos])) -#define CVAL_NC(buf,pos) ((unsigned)(((unsigned char *)(buf))[pos])) /* Non-const version of CVAL */ +#define CVAL_NC(buf,pos) (((unsigned char *)(buf))[pos]) /* Non-const version of CVAL */ #define PVAL(buf,pos) (CVAL(buf,pos)) #define SCVAL(buf,pos,val) (CVAL_NC(buf,pos) = (val)) -- 2.34.1