From: Ben Laurie Date: Sat, 23 Oct 1999 09:19:42 +0000 (+0000) Subject: Don't return stuff from void functions. X-Git-Tag: OpenSSL_0_9_5beta1~473 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=cbb448c9457cbd17dc58cf4bcae23dda261a3934;p=oweals%2Fopenssl.git Don't return stuff from void functions. --- diff --git a/crypto/asn1/a_bitstr.c b/crypto/asn1/a_bitstr.c index a441cde1db..b36d62079a 100644 --- a/crypto/asn1/a_bitstr.c +++ b/crypto/asn1/a_bitstr.c @@ -64,7 +64,7 @@ ASN1_BIT_STRING *ASN1_BIT_STRING_new(void) { return M_ASN1_BIT_STRING_new(); } void ASN1_BIT_STRING_free(ASN1_BIT_STRING *x) -{ return M_ASN1_BIT_STRING_free(x); } +{ M_ASN1_BIT_STRING_free(x); } int ASN1_BIT_STRING_set(ASN1_BIT_STRING *x, unsigned char *d, int len) { return M_ASN1_BIT_STRING_set(x, d, len); } diff --git a/crypto/asn1/a_bmp.c b/crypto/asn1/a_bmp.c index eba61a7747..d9ac5a0475 100644 --- a/crypto/asn1/a_bmp.c +++ b/crypto/asn1/a_bmp.c @@ -64,7 +64,7 @@ ASN1_BMPSTRING *ASN1_BMPSTRING_new(void) { return M_ASN1_BMPSTRING_new(); } void ASN1_BMPSTRING_free(ASN1_BMPSTRING *x) -{ return M_ASN1_BMPSTRING_free(x); } +{ M_ASN1_BMPSTRING_free(x); } int i2d_ASN1_BMPSTRING(ASN1_BMPSTRING *a, unsigned char **pp) { diff --git a/crypto/asn1/a_enum.c b/crypto/asn1/a_enum.c index 32cfe5b599..61349ed003 100644 --- a/crypto/asn1/a_enum.c +++ b/crypto/asn1/a_enum.c @@ -69,7 +69,7 @@ ASN1_ENUMERATED *ASN1_ENUMERATED_new(void) { return M_ASN1_ENUMERATED_new(); } void ASN1_ENUMERATED_free(ASN1_ENUMERATED *x) -{ return M_ASN1_ENUMERATED_free(x); } +{ M_ASN1_ENUMERATED_free(x); } int i2d_ASN1_ENUMERATED(ASN1_ENUMERATED *a, unsigned char **pp) { diff --git a/crypto/asn1/a_gentm.c b/crypto/asn1/a_gentm.c index d5b8bd99b2..84062170e8 100644 --- a/crypto/asn1/a_gentm.c +++ b/crypto/asn1/a_gentm.c @@ -67,7 +67,7 @@ ASN1_GENERALIZEDTIME *ASN1_GENERALIZEDTIME_new(void) { return M_ASN1_GENERALIZEDTIME_new(); } void ASN1_GENERALIZEDTIME_free(ASN1_GENERALIZEDTIME *x) -{ return M_ASN1_GENERALIZEDTIME_free(x); } +{ M_ASN1_GENERALIZEDTIME_free(x); } int i2d_ASN1_GENERALIZEDTIME(ASN1_GENERALIZEDTIME *a, unsigned char **pp) { diff --git a/crypto/asn1/a_int.c b/crypto/asn1/a_int.c index de40623f42..7ed99eb399 100644 --- a/crypto/asn1/a_int.c +++ b/crypto/asn1/a_int.c @@ -64,7 +64,7 @@ ASN1_INTEGER *ASN1_INTEGER_new(void) { return M_ASN1_INTEGER_new();} void ASN1_INTEGER_free(ASN1_INTEGER *x) -{ return M_ASN1_INTEGER_free(x);} +{ M_ASN1_INTEGER_free(x);} ASN1_INTEGER *ASN1_INTEGER_dup(ASN1_INTEGER *x) { return M_ASN1_INTEGER_dup(x);} diff --git a/crypto/asn1/a_mbstr.c b/crypto/asn1/a_mbstr.c index b83e3ee35e..260c1aff0d 100644 --- a/crypto/asn1/a_mbstr.c +++ b/crypto/asn1/a_mbstr.c @@ -87,8 +87,8 @@ int ASN1_mbstring_copy(ASN1_STRING **out, unsigned char *in, int len, ASN1_STRING *dest; unsigned char *p; int nchar; - int (*cpyfunc)(unsigned long value, void *in) = NULL; - if(len == -1) len = strlen(in); + int (*cpyfunc)(unsigned long value, void *in_) = NULL; + if(len == -1) len = strlen((const char *)in); /* First do a string check and work out the number of characters */ switch(inform) { diff --git a/crypto/asn1/a_octet.c b/crypto/asn1/a_octet.c index bd6264eec1..2586f4327d 100644 --- a/crypto/asn1/a_octet.c +++ b/crypto/asn1/a_octet.c @@ -64,7 +64,7 @@ ASN1_OCTET_STRING *ASN1_OCTET_STRING_new(void) { return M_ASN1_OCTET_STRING_new(); } void ASN1_OCTET_STRING_free(ASN1_OCTET_STRING *x) -{ return M_ASN1_OCTET_STRING_free(x); } +{ M_ASN1_OCTET_STRING_free(x); } ASN1_OCTET_STRING *ASN1_OCTET_STRING_dup(ASN1_OCTET_STRING *x) { return M_ASN1_OCTET_STRING_dup(x); } diff --git a/crypto/asn1/a_print.c b/crypto/asn1/a_print.c index 21bdcdb904..9a965d379c 100644 --- a/crypto/asn1/a_print.c +++ b/crypto/asn1/a_print.c @@ -64,7 +64,7 @@ ASN1_IA5STRING *ASN1_IA5STRING_new(void) { return M_ASN1_IA5STRING_new();} void ASN1_IA5STRING_free(ASN1_IA5STRING *x) -{ return M_ASN1_IA5STRING_free(x);} +{ M_ASN1_IA5STRING_free(x);} int i2d_ASN1_IA5STRING(ASN1_IA5STRING *a, unsigned char **pp) { return(M_i2d_ASN1_IA5STRING(a,pp)); } @@ -77,7 +77,7 @@ ASN1_T61STRING *ASN1_T61STRING_new(void) { return M_ASN1_T61STRING_new();} void ASN1_T61STRING_free(ASN1_T61STRING *x) -{ return M_ASN1_T61STRING_free(x);} +{ M_ASN1_T61STRING_free(x);} ASN1_T61STRING *d2i_ASN1_T61STRING(ASN1_T61STRING **a, unsigned char **pp, long l) @@ -87,7 +87,7 @@ ASN1_PRINTABLESTRING *ASN1_PRINTABLESTRING_new(void) { return M_ASN1_PRINTABLESTRING_new();} void ASN1_PRINTABLESTRING_free(ASN1_PRINTABLESTRING *x) -{ return M_ASN1_PRINTABLESTRING_free(x);} +{ M_ASN1_PRINTABLESTRING_free(x);} ASN1_PRINTABLESTRING *d2i_ASN1_PRINTABLESTRING(ASN1_PRINTABLESTRING **a, unsigned char **pp, long l) @@ -171,7 +171,7 @@ ASN1_STRING *DIRECTORYSTRING_new(void) { return M_DIRECTORYSTRING_new();} void DIRECTORYSTRING_free(ASN1_STRING *x) -{ return M_DIRECTORYSTRING_free(x);} +{ M_DIRECTORYSTRING_free(x);} int i2d_DIRECTORYSTRING(ASN1_STRING *a, unsigned char **pp) { return(M_i2d_DIRECTORYSTRING(a,pp)); } @@ -184,7 +184,7 @@ ASN1_STRING *DISPLAYTEXT_new(void) { return M_DISPLAYTEXT_new();} void DISPLAYTEXT_free(ASN1_STRING *x) -{ return M_DISPLAYTEXT_free(x);} +{ M_DISPLAYTEXT_free(x);} int i2d_DISPLAYTEXT(ASN1_STRING *a, unsigned char **pp) { return(M_i2d_DISPLAYTEXT(a,pp)); } diff --git a/crypto/asn1/a_time.c b/crypto/asn1/a_time.c index d1900f68e4..b193f1c71f 100644 --- a/crypto/asn1/a_time.c +++ b/crypto/asn1/a_time.c @@ -70,7 +70,7 @@ ASN1_TIME *ASN1_TIME_new(void) { return M_ASN1_TIME_new(); } void ASN1_TIME_free(ASN1_TIME *x) -{ return M_ASN1_TIME_free(x); } +{ M_ASN1_TIME_free(x); } int i2d_ASN1_TIME(ASN1_TIME *a, unsigned char **pp) { diff --git a/crypto/asn1/a_utctm.c b/crypto/asn1/a_utctm.c index ba349455a1..07565974e3 100644 --- a/crypto/asn1/a_utctm.c +++ b/crypto/asn1/a_utctm.c @@ -70,7 +70,7 @@ ASN1_UTCTIME *ASN1_UTCTIME_new(void) { return M_ASN1_UTCTIME_new(); } void ASN1_UTCTIME_free(ASN1_UTCTIME *x) -{ return M_ASN1_UTCTIME_free(x); } +{ M_ASN1_UTCTIME_free(x); } int i2d_ASN1_UTCTIME(ASN1_UTCTIME *a, unsigned char **pp) { diff --git a/crypto/asn1/a_utf8.c b/crypto/asn1/a_utf8.c index 16aab7f43e..45434be4fa 100644 --- a/crypto/asn1/a_utf8.c +++ b/crypto/asn1/a_utf8.c @@ -64,7 +64,7 @@ ASN1_UTF8STRING *ASN1_UTF8STRING_new(void) { return M_ASN1_UTF8STRING_new();} void ASN1_UTF8STRING_free(ASN1_UTF8STRING *x) -{ return M_ASN1_UTF8STRING_free(x);} +{ M_ASN1_UTF8STRING_free(x);} int i2d_ASN1_UTF8STRING(ASN1_UTF8STRING *a, unsigned char **pp) { diff --git a/crypto/asn1/a_vis.c b/crypto/asn1/a_vis.c index 3bc3d79f5d..5cfc080bec 100644 --- a/crypto/asn1/a_vis.c +++ b/crypto/asn1/a_vis.c @@ -64,7 +64,7 @@ ASN1_VISIBLESTRING *ASN1_VISIBLESTRING_new(void) { return M_ASN1_VISIBLESTRING_new(); } void ASN1_VISIBLESTRING_free(ASN1_VISIBLESTRING *x) -{ return M_ASN1_VISIBLESTRING_free(x); } +{ M_ASN1_VISIBLESTRING_free(x); } int i2d_ASN1_VISIBLESTRING(ASN1_VISIBLESTRING *a, unsigned char **pp) {