summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1997-10-29 19:58:20 +0000
committerLuke Leighton <lkcl@samba.org>1997-10-29 19:58:20 +0000
commit77cc0d6bac0db80caded81bee90ac7b8e3c9f67c (patch)
tree29e31496db45a2023e64dbd3a39c3d262c44216d
parent520878fd1f440a7313cedb4827bdc81454d94d20 (diff)
downloadsamba-77cc0d6bac0db80caded81bee90ac7b8e3c9f67c.tar.gz
samba-77cc0d6bac0db80caded81bee90ac7b8e3c9f67c.tar.bz2
samba-77cc0d6bac0db80caded81bee90ac7b8e3c9f67c.zip
typecast in calls to print_asc() wrong
(This used to be commit 4088683ee046783678d4f748ddb03b5907d00506)
-rw-r--r--source3/include/byteorder.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/include/byteorder.h b/source3/include/byteorder.h
index 7326ec2abe..823b75567b 100644
--- a/source3/include/byteorder.h
+++ b/source3/include/byteorder.h
@@ -206,7 +206,7 @@ it also defines lots of intermediate macros, just ignore those :-)
RW_PCVAL(read,inbuf,outbuf,len) \
DEBUG(5,("%s%04x %s: ", \
tab_depth(depth), PTR_DIFF(inbuf,base),string)); \
- if (charmode) print_asc(5, (char*)(outbuf), (len)); else \
+ if (charmode) print_asc(5, (unsigned char*)(outbuf), (len)); else \
{ int idx; for (idx = 0; idx < len; idx++) { DEBUG(5,("%02x ", CVAL(&((outbuf)[idx]), 0))); } } \
DEBUG(5,("\n"));
@@ -214,7 +214,7 @@ it also defines lots of intermediate macros, just ignore those :-)
RW_PSVAL(read,inbuf,outbuf,len) \
DEBUG(5,("%s%04x %s: ", \
tab_depth(depth), PTR_DIFF(inbuf,base),string)); \
- if (charmode) print_asc(5, (char*)(outbuf), 2*(len)); else \
+ if (charmode) print_asc(5, (unsigned char*)(outbuf), 2*(len)); else \
{ int idx; for (idx = 0; idx < len; idx++) { DEBUG(5,("%04x ", SVAL(&((outbuf)[idx]), 0))); } } \
DEBUG(5,("\n"));
@@ -222,7 +222,7 @@ it also defines lots of intermediate macros, just ignore those :-)
RW_PIVAL(read,inbuf,outbuf,len) \
DEBUG(5,("%s%04x %s: ", \
tab_depth(depth), PTR_DIFF(inbuf,base),string)); \
- if (charmode) print_asc(5, (char*)(outbuf), 4*(len)); else \
+ if (charmode) print_asc(5, (unsigned char*)(outbuf), 4*(len)); else \
{ int idx; for (idx = 0; idx < len; idx++) { DEBUG(5,("%08x ", IVAL(&((outbuf)[idx]), 0))); } } \
DEBUG(5,("\n"));