git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1b0d51
)
Some more fixes for syntax problems on AIX etc ...
author
Richard Sharpe
<sharpe@samba.org>
Fri, 9 May 2003 06:23:15 +0000
(06:23 +0000)
committer
Richard 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
patch
|
blob
|
history
diff --git
a/source3/utils/editreg.c
b/source3/utils/editreg.c
index eb1ed9bef45cd50a9ba620b20e5fb296a8939122..08561dd868772797ee422f12b37531ce894b1dfc 100644
(file)
--- a/
source3/utils/editreg.c
+++ b/
source3/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;