diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2008-10-20 15:12:00 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2008-10-20 15:12:00 +0000 |
commit | 606f6c477a0eff3573d26d172bc832add095c44e (patch) | |
tree | 77fad8ebb127dac8c960ca2add5492adf1ed4f9e /crypto/asn1/ameth_lib.c | |
parent | 1581f822439eb6c2aa94565bcbd76430912b40f3 (diff) |
Fix a shed load or warnings:
Duplicate const.
Use of ; outside function.
Diffstat (limited to 'crypto/asn1/ameth_lib.c')
-rw-r--r-- | crypto/asn1/ameth_lib.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/crypto/asn1/ameth_lib.c b/crypto/asn1/ameth_lib.c index 300195bf95..fee7198b85 100644 --- a/crypto/asn1/ameth_lib.c +++ b/crypto/asn1/ameth_lib.c @@ -112,7 +112,7 @@ void main() } #endif -DECLARE_OBJ_BSEARCH_CMP_FN(EVP_PKEY_ASN1_METHOD *, +DECLARE_OBJ_BSEARCH_CMP_FN(const EVP_PKEY_ASN1_METHOD *, const EVP_PKEY_ASN1_METHOD *, ameth_cmp); static int ameth_cmp(const EVP_PKEY_ASN1_METHOD * const *a, @@ -121,7 +121,7 @@ static int ameth_cmp(const EVP_PKEY_ASN1_METHOD * const *a, return ((*a)->pkey_id - (*b)->pkey_id); } -IMPLEMENT_OBJ_BSEARCH_CMP_FN(EVP_PKEY_ASN1_METHOD *, +IMPLEMENT_OBJ_BSEARCH_CMP_FN(const EVP_PKEY_ASN1_METHOD *, const EVP_PKEY_ASN1_METHOD *, ameth_cmp); int EVP_PKEY_asn1_get_count(void) @@ -145,8 +145,8 @@ const EVP_PKEY_ASN1_METHOD *EVP_PKEY_asn1_get0(int idx) static const EVP_PKEY_ASN1_METHOD *pkey_asn1_find(int type) { - EVP_PKEY_ASN1_METHOD tmp, *t = &tmp; - const EVP_PKEY_ASN1_METHOD **ret; + EVP_PKEY_ASN1_METHOD tmp; + const EVP_PKEY_ASN1_METHOD *t = &tmp, **ret; tmp.pkey_id = type; if (app_methods) { @@ -155,7 +155,7 @@ static const EVP_PKEY_ASN1_METHOD *pkey_asn1_find(int type) if (idx >= 0) return sk_EVP_PKEY_ASN1_METHOD_value(app_methods, idx); } - ret = OBJ_bsearch(EVP_PKEY_ASN1_METHOD *, &t, + ret = OBJ_bsearch(const EVP_PKEY_ASN1_METHOD *, &t, const EVP_PKEY_ASN1_METHOD *, standard_methods, sizeof(standard_methods) /sizeof(EVP_PKEY_ASN1_METHOD *), |