From 25ace3ed252a468d4d2b914a54863b2d539bb0b9 Mon Sep 17 00:00:00 2001 From: Ben Laurie Date: Tue, 11 Jun 2002 12:03:51 +0000 Subject: [PATCH] Fix warnings. --- crypto/asn1/a_enum.c | 2 +- crypto/asn1/a_int.c | 2 +- crypto/des/des_old.h | 2 +- crypto/ecdsa/ecs_gen.c | 2 ++ 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/crypto/asn1/a_enum.c b/crypto/asn1/a_enum.c index 35232d82b2..ad8f0ffd1a 100644 --- a/crypto/asn1/a_enum.c +++ b/crypto/asn1/a_enum.c @@ -153,7 +153,7 @@ ASN1_ENUMERATED *BN_to_ASN1_ENUMERATED(BIGNUM *bn, ASN1_ENUMERATED *ai) len=((j == 0)?0:((j/8)+1)); if (ret->length < len+4) { - char *new_data=(char *)OPENSSL_realloc(ret->data, len+4); + unsigned char *new_data=OPENSSL_realloc(ret->data, len+4); if (!new_data) { ASN1err(ASN1_F_BN_TO_ASN1_INTEGER,ERR_R_MALLOC_FAILURE); diff --git a/crypto/asn1/a_int.c b/crypto/asn1/a_int.c index 8ae9827f6e..edb243c021 100644 --- a/crypto/asn1/a_int.c +++ b/crypto/asn1/a_int.c @@ -399,7 +399,7 @@ ASN1_INTEGER *BN_to_ASN1_INTEGER(BIGNUM *bn, ASN1_INTEGER *ai) len=((j == 0)?0:((j/8)+1)); if (ret->length < len+4) { - char *new_data=(char *)OPENSSL_realloc(ret->data, len+4); + unsigned char *new_data=OPENSSL_realloc(ret->data, len+4); if (!new_data) { ASN1err(ASN1_F_BN_TO_ASN1_INTEGER,ERR_R_MALLOC_FAILURE); diff --git a/crypto/des/des_old.h b/crypto/des/des_old.h index 3778f93c15..04c78a1ce9 100644 --- a/crypto/des/des_old.h +++ b/crypto/des/des_old.h @@ -366,7 +366,7 @@ int _ossl_old_des_enc_write(int fd,char *buf,int len,_ossl_old_des_key_schedule _ossl_old_des_cblock *iv); char *_ossl_old_des_fcrypt(const char *buf,const char *salt, char *ret); char *_ossl_old_des_crypt(const char *buf,const char *salt); -#if !defined(PERL5) && !defined(__FreeBSD__) && !defined(NeXT) +#if !defined(PERL5) && !defined(NeXT) char *_ossl_old_crypt(const char *buf,const char *salt); #endif void _ossl_old_des_ofb_encrypt(unsigned char *in,unsigned char *out, diff --git a/crypto/ecdsa/ecs_gen.c b/crypto/ecdsa/ecs_gen.c index a21cd69406..e82b9b6e2f 100644 --- a/crypto/ecdsa/ecs_gen.c +++ b/crypto/ecdsa/ecs_gen.c @@ -78,4 +78,6 @@ ECDSA *ECDSA_generate_parameters(int bits, #ifdef __cplusplus } #endif +#else +static void *dummy=&dummy; #endif -- 2.25.1