diff options
Diffstat (limited to 'source4')
-rw-r--r-- | source4/include/byteorder.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/include/byteorder.h b/source4/include/byteorder.h index 5137b78e4c..d0402d0dcc 100644 --- a/source4/include/byteorder.h +++ b/source4/include/byteorder.h @@ -149,8 +149,8 @@ static __inline__ void st_le32(uint32_t *addr, const uint32_t val) #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) -#define SIVAL(buf,pos,val) st_le32((uint32_t *)__PTRPOS(buf,pos), val) +#define SSVAL(buf,pos,val) st_le16((uint16_t *)_PTRPOS(buf,pos), val) +#define SIVAL(buf,pos,val) st_le32((uint32_t *)_PTRPOS(buf,pos), val) #define SVALS(buf,pos) ((int16_t)SVAL(buf,pos)) #define IVALS(buf,pos) ((int32_t)IVAL(buf,pos)) #define SSVALS(buf,pos,val) SSVAL((buf),(pos),((int16_t)(val))) |