From 20756925486b407fbb2cf06d776ad2ce19b00c74 Mon Sep 17 00:00:00 2001 From: Richard Sharpe Date: Fri, 9 May 2003 06:23:15 +0000 Subject: [PATCH] Some more fixes for syntax problems on AIX etc ... --- source/utils/editreg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/utils/editreg.c b/source/utils/editreg.c index eb1ed9bef45..08561dd8687 100644 --- a/source/utils/editreg.c +++ b/source/utils/editreg.c @@ -340,8 +340,8 @@ Hope this helps.... (Although it was "fun" for me to uncover this things, (((unsigned char *)(buf))[3])=(unsigned char)((val)>>24)) #define SSVAL(buf, val) \ - ((unsigned char)buf[0]=(unsigned char)((val)&0xFF),\ - (unsigned char)buf[1]=(unsigned char)(((val)>>8)&0xFF)) + ((((unsigned char *)(buf))[0])=(unsigned char)((val)&0xFF),\ + (((unsigned char *)(buf))[1])=(unsigned char)((val)>>8)) static int verbose = 0; static int print_security = 0; -- 2.11.4.GIT