Some more fixes for syntax problems on AIX etc ...
authorRichard Sharpe <sharpe@samba.org>
Fri, 9 May 2003 06:23:15 +0000 (06:23 +0000)
committerRichard Sharpe <sharpe@samba.org>
Fri, 9 May 2003 06:23:15 +0000 (06:23 +0000)
(This used to be commit 20756925486b407fbb2cf06d776ad2ce19b00c74)

source3/utils/editreg.c

index eb1ed9bef45cd50a9ba620b20e5fb296a8939122..08561dd868772797ee422f12b37531ce894b1dfc 100644 (file)
@@ -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;