summaryrefslogtreecommitdiffstats
path: root/crypto/objects/o_names.c
diff options
context:
space:
mode:
authorNils Larsch <nils@openssl.org>2005-04-05 10:29:43 +0000
committerNils Larsch <nils@openssl.org>2005-04-05 10:29:43 +0000
commit70f34a58411014e76dd03ed6ac0b1bdb95b53b16 (patch)
treef8c42b1de09721ac83f07abd04c44f05a43465d1 /crypto/objects/o_names.c
parentc2e40d0f9a417bb5bb4d7c53ffb7d07229caffb8 (diff)
some const fixes and cleanup
Diffstat (limited to 'crypto/objects/o_names.c')
-rw-r--r--crypto/objects/o_names.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/objects/o_names.c b/crypto/objects/o_names.c
index 28c9370ca3..adb5731f76 100644
--- a/crypto/objects/o_names.c
+++ b/crypto/objects/o_names.c
@@ -111,8 +111,8 @@ int OBJ_NAME_new_index(unsigned long (*hash_func)(const char *),
static int obj_name_cmp(const void *a_void, const void *b_void)
{
int ret;
- OBJ_NAME *a = (OBJ_NAME *)a_void;
- OBJ_NAME *b = (OBJ_NAME *)b_void;
+ const OBJ_NAME *a = (const OBJ_NAME *)a_void;
+ const OBJ_NAME *b = (const OBJ_NAME *)b_void;
ret=a->type-b->type;
if (ret == 0)
@@ -133,7 +133,7 @@ static int obj_name_cmp(const void *a_void, const void *b_void)
static unsigned long obj_name_hash(const void *a_void)
{
unsigned long ret;
- OBJ_NAME *a = (OBJ_NAME *)a_void;
+ const OBJ_NAME *a = (const OBJ_NAME *)a_void;
if ((name_funcs_stack != NULL) && (sk_NAME_FUNCS_num(name_funcs_stack) > a->type))
{