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 35232d82b222e2ca4dfcda5f17eccb7f4d5e87e6..ad8f0ffd1ab3859c561d24f291f3428bb1366477 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 8ae9827f6eaf5464bfb11e64a0c0a3a90685423d..edb243c0217eeb625d3ea738b1cca4bf636e7c66 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 3778f93c1522adf157e6cd0f6c3757e8f1a0c423..04c78a1ce9ce85927ec717a8a6a8d941bafe568c 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 a21cd694069194ba4987a5a9b833645ad2c35457..e82b9b6e2fb99c06222ab171064765d781f774c3 100644 (file)
@@ -78,4 +78,6 @@ ECDSA *ECDSA_generate_parameters(int bits,
 #ifdef  __cplusplus
 }
 #endif
+#else
+static void *dummy=&dummy;
 #endif