Fix warnings.
authorBen Laurie <ben@openssl.org>
Tue, 11 Jun 2002 12:03:51 +0000 (12:03 +0000)
committerBen Laurie <ben@openssl.org>
Tue, 11 Jun 2002 12:03:51 +0000 (12:03 +0000)
crypto/asn1/a_enum.c
crypto/asn1/a_int.c
crypto/des/des_old.h
crypto/ecdsa/ecs_gen.c

index 35232d8..ad8f0ff 100644 (file)
@@ -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);
index 8ae9827..edb243c 100644 (file)
@@ -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);
index 3778f93..04c78a1 100644 (file)
@@ -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,
index a21cd69..e82b9b6 100644 (file)
@@ -78,4 +78,6 @@ ECDSA *ECDSA_generate_parameters(int bits,
 #ifdef  __cplusplus
 }
 #endif
+#else
+static void *dummy=&dummy;
 #endif