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/evp | |
parent | 1581f822439eb6c2aa94565bcbd76430912b40f3 (diff) |
Fix a shed load or warnings:
Duplicate const.
Use of ; outside function.
Diffstat (limited to 'crypto/evp')
-rw-r--r-- | crypto/evp/pmeth_lib.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/crypto/evp/pmeth_lib.c b/crypto/evp/pmeth_lib.c index 3fd11cbb5a..d1b661ff36 100644 --- a/crypto/evp/pmeth_lib.c +++ b/crypto/evp/pmeth_lib.c @@ -84,7 +84,7 @@ static const EVP_PKEY_METHOD *standard_methods[] = &hmac_pkey_meth, }; -DECLARE_OBJ_BSEARCH_CMP_FN(EVP_PKEY_METHOD *, const EVP_PKEY_METHOD *, +DECLARE_OBJ_BSEARCH_CMP_FN(const EVP_PKEY_METHOD *, const EVP_PKEY_METHOD *, pmeth_cmp); static int pmeth_cmp(const EVP_PKEY_METHOD * const *a, @@ -93,13 +93,13 @@ static int pmeth_cmp(const EVP_PKEY_METHOD * const *a, return ((*a)->pkey_id - (*b)->pkey_id); } -IMPLEMENT_OBJ_BSEARCH_CMP_FN(EVP_PKEY_METHOD *, const EVP_PKEY_METHOD *, +IMPLEMENT_OBJ_BSEARCH_CMP_FN(const EVP_PKEY_METHOD *, const EVP_PKEY_METHOD *, pmeth_cmp); const EVP_PKEY_METHOD *EVP_PKEY_meth_find(int type) { - EVP_PKEY_METHOD tmp, *t = &tmp; - const EVP_PKEY_METHOD **ret; + EVP_PKEY_METHOD tmp; + const EVP_PKEY_METHOD *t = &tmp, **ret; tmp.pkey_id = type; if (app_pkey_methods) { @@ -108,7 +108,7 @@ const EVP_PKEY_METHOD *EVP_PKEY_meth_find(int type) if (idx >= 0) return sk_EVP_PKEY_METHOD_value(app_pkey_methods, idx); } - ret = OBJ_bsearch(EVP_PKEY_METHOD *, &t, + ret = OBJ_bsearch(const EVP_PKEY_METHOD *, &t, const EVP_PKEY_METHOD *, standard_methods, sizeof(standard_methods)/sizeof(EVP_PKEY_METHOD *), pmeth_cmp); |