From: Nils Larsch Date: Tue, 22 Mar 2005 17:55:18 +0000 (+0000) Subject: test, remove unnecessary const cast X-Git-Tag: OpenSSL_0_9_7g~17^2~19 X-Git-Url: https://git.openssl.org/?p=openssl.git;a=commitdiff_plain;h=41e455bfc43b9815f5b6d7498601fdd508c80dc2 test, remove unnecessary const cast --- 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; }