Browse Source

test, remove unnecessary const cast

Nils Larsch 19 years ago
parent
commit
41e455bfc4
2 changed files with 2 additions and 2 deletions
  1. 1 1
      crypto/evp/bio_md.c
  2. 1 1
      crypto/evp/e_null.c

+ 1 - 1
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);
 			}
 		}

+ 1 - 1
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;
 	}