summaryrefslogtreecommitdiffstats
path: root/crypto/bio/b_dump.c
diff options
context:
space:
mode:
authorUlf Möller <ulf@openssl.org>2000-01-30 22:20:28 +0000
committerUlf Möller <ulf@openssl.org>2000-01-30 22:20:28 +0000
commit9d1a01be8f84143618fc862e1222eb714949fdc1 (patch)
treeba9639648f25c2d5104368d7e96e8b391e100cc7 /crypto/bio/b_dump.c
parent74235cc9ec3123ee7f51211ea054632ca0cf7c91 (diff)
Source code cleanups: Use void * rather than char * in lhash,
eliminate some of the -Wcast-qual warnings (debug-ben-strict target)
Diffstat (limited to 'crypto/bio/b_dump.c')
-rw-r--r--crypto/bio/b_dump.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/bio/b_dump.c b/crypto/bio/b_dump.c
index a7cd828978..f5aeb237f5 100644
--- a/crypto/bio/b_dump.c
+++ b/crypto/bio/b_dump.c
@@ -92,7 +92,7 @@ int BIO_dump(BIO *bio, const char *s, int len)
if (((i*DUMP_WIDTH)+j)>=len) {
strcat(buf," ");
} else {
- ch=((unsigned char)*((char *)(s)+i*DUMP_WIDTH+j)) & 0xff;
+ ch=((unsigned char)*(s+i*DUMP_WIDTH+j)) & 0xff;
sprintf(tmp,"%02x%c",ch,j==7?'-':' ');
strcat(buf,tmp);
}
@@ -101,7 +101,7 @@ int BIO_dump(BIO *bio, const char *s, int len)
for(j=0;j<DUMP_WIDTH;j++) {
if (((i*DUMP_WIDTH)+j)>=len)
break;
- ch=((unsigned char)*((char *)(s)+i*DUMP_WIDTH+j)) & 0xff;
+ ch=((unsigned char)*(s+i*DUMP_WIDTH+j)) & 0xff;
#ifndef CHARSET_EBCDIC
sprintf(tmp,"%c",((ch>=' ')&&(ch<='~'))?ch:'.');
#else