summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-02-02 15:43:32 +0100
committerVolker Lendecke <vl@samba.org>2009-02-02 15:39:13 +0100
commitcfc27ece109fcc63016ad58c5f584b5459f57945 (patch)
tree6d15b87192ab876f8232c50328be67a72a844248 /lib
parent45940ef23a6560a100ba400249e92451eb6d5b84 (diff)
downloadsamba-cfc27ece109fcc63016ad58c5f584b5459f57945.tar.gz
samba-cfc27ece109fcc63016ad58c5f584b5459f57945.tar.bz2
samba-cfc27ece109fcc63016ad58c5f584b5459f57945.zip
Attempt to fix "make test" on host "tridge"
Diffstat (limited to 'lib')
-rw-r--r--lib/util/byteorder.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util/byteorder.h b/lib/util/byteorder.h
index 894beccabf..b860dea791 100644
--- a/lib/util/byteorder.h
+++ b/lib/util/byteorder.h
@@ -151,7 +151,7 @@ static __inline__ void st_le32(uint32_t *addr, const uint32_t val)
#if HAVE_ASM_BYTEORDER
-#define _PTRPOS(buf,pos) (((const uint8_t *)buf)+(pos))
+#define _PTRPOS(buf,pos) (((const uint8_t *)(buf))+(pos))
#define SVAL(buf,pos) ld_le16((const uint16_t *)_PTRPOS(buf,pos))
#define IVAL(buf,pos) ld_le32((const uint32_t *)_PTRPOS(buf,pos))
#define SSVAL(buf,pos,val) st_le16((uint16_t *)_PTRPOS(buf,pos), val)