From 41e455bfc43b9815f5b6d7498601fdd508c80dc2 Mon Sep 17 00:00:00 2001 From: Nils Larsch Date: Tue, 22 Mar 2005 17:55:18 +0000 Subject: [PATCH] test, remove unnecessary const cast --- crypto/evp/bio_md.c | 2 +- crypto/evp/e_null.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crypto/evp/bio_md.c b/crypto/evp/bio_md.c index 27ec62f4b5..76ff9fe815 100644 --- a/crypto/evp/bio_md.c +++ b/crypto/evp/bio_md.c @@ -153,7 +153,7 @@ static int md_write(BIO *b, const char *in, int inl) { if (ret > 0) { - EVP_DigestUpdate(ctx,(unsigned char *)in, + EVP_DigestUpdate(ctx,(const unsigned char *)in, (unsigned int)ret); } } diff --git a/crypto/evp/e_null.c b/crypto/evp/e_null.c index 2420d7e5af..698a8e379c 100644 --- a/crypto/evp/e_null.c +++ b/crypto/evp/e_null.c @@ -95,7 +95,7 @@ static int null_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, unsigned int inl) { if (in != out) - memcpy((char *)out,(char *)in,(int)inl); + memcpy((char *)out,(const char *)in,(size_t)inl); return 1; } -- 2.25.1