diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2007-12-16 13:57:44 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2007-12-16 13:57:44 +0000 |
commit | b045299113e6f676b470a20670f077f6e5c10052 (patch) | |
tree | 58e4d216c000466ef5c8c170717c6e85b88f9751 /crypto/sha | |
parent | 13baedc55bd8371af0a3fb60c88bfed234a58ed1 (diff) |
Avoid aliasing warning.
Diffstat (limited to 'crypto/sha')
-rw-r--r-- | crypto/sha/shatest.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/crypto/sha/shatest.c b/crypto/sha/shatest.c index bfb11f0a5f..27614646d1 100644 --- a/crypto/sha/shatest.c +++ b/crypto/sha/shatest.c @@ -106,7 +106,7 @@ static char *pt(unsigned char *md); int main(int argc, char *argv[]) { int i,err=0; - unsigned char **P,**R; + char **P,**R; static unsigned char buf[1000]; char *p,*r; EVP_MD_CTX c; @@ -118,14 +118,14 @@ int main(int argc, char *argv[]) #endif EVP_MD_CTX_init(&c); - P=(unsigned char **)test; - R=(unsigned char **)ret; + P=test; + R=ret; i=1; while (*P != NULL) { - EVP_Digest(*P,strlen((char *)*P),md,NULL,EVP_sha(), NULL); + EVP_Digest(*P,strlen(*P),md,NULL,EVP_sha(), NULL); p=pt(md); - if (strcmp(p,(char *)*R) != 0) + if (strcmp(p,*R) != 0) { printf("error calculating SHA on '%s'\n",*P); printf("got %s instead of %s\n",p,*R); |