diff options
author | Luke Leighton <lkcl@samba.org> | 1997-10-29 19:58:20 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1997-10-29 19:58:20 +0000 |
commit | 4088683ee046783678d4f748ddb03b5907d00506 (patch) | |
tree | 6b9c78da07b7d770fc0b4e20ce9148372dee0060 | |
parent | 420408ee83902faa6cf871f26e93ad5efb483727 (diff) | |
download | samba-4088683ee046783678d4f748ddb03b5907d00506.tar.gz |
typecast in calls to print_asc() wrong
-rw-r--r-- | source/include/byteorder.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/include/byteorder.h b/source/include/byteorder.h index 7326ec2abe1..823b75567b1 100644 --- a/source/include/byteorder.h +++ b/source/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")); |