summaryrefslogtreecommitdiffstats
path: root/crypto/objects/o_names.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2000-12-13 18:15:03 +0100
committerRichard Levitte <levitte@openssl.org>2000-12-13 18:15:03 +0100
commit8d28d5f81b81f68a69db1c67e24bcfc092614346 (patch)
tree3391f9ea36d1b9655ffd8e9065de14a5284c5556 /crypto/objects/o_names.c
parentProblem: bn_mul_normal() misbehaves if the size of b is 0. (diff)
downloadopenssl-8d28d5f81b81f68a69db1c67e24bcfc092614346.tar.xz
openssl-8d28d5f81b81f68a69db1c67e24bcfc092614346.zip
Constification of the data of a hash table. This means the callback
functions need to be constified, and therefore meant a number of easy changes a little everywhere. Now, if someone could explain to me why OBJ_dup() cheats...
Diffstat (limited to 'crypto/objects/o_names.c')
-rw-r--r--crypto/objects/o_names.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/crypto/objects/o_names.c b/crypto/objects/o_names.c
index a5b1aacd66..367ee2bdef 100644
--- a/crypto/objects/o_names.c
+++ b/crypto/objects/o_names.c
@@ -29,9 +29,9 @@ static STACK_OF(NAME_FUNCS) *name_funcs_stack;
* need for macro-generated wrapper functions. */
/* static unsigned long obj_name_hash(OBJ_NAME *a); */
-static unsigned long obj_name_hash(void *a_void);
+static unsigned long obj_name_hash(const void *a_void);
/* static int obj_name_cmp(OBJ_NAME *a,OBJ_NAME *b); */
-static int obj_name_cmp(void *a_void,void *b_void);
+static int obj_name_cmp(const void *a_void,const void *b_void);
int OBJ_NAME_init(void)
{
@@ -88,7 +88,7 @@ int OBJ_NAME_new_index(unsigned long (*hash_func)(const char *),
}
/* static int obj_name_cmp(OBJ_NAME *a, OBJ_NAME *b) */
-static int obj_name_cmp(void *a_void, void *b_void)
+static int obj_name_cmp(const void *a_void, const void *b_void)
{
int ret;
OBJ_NAME *a = (OBJ_NAME *)a_void;
@@ -110,7 +110,7 @@ static int obj_name_cmp(void *a_void, void *b_void)
}
/* static unsigned long obj_name_hash(OBJ_NAME *a) */
-static unsigned long obj_name_hash(void *a_void)
+static unsigned long obj_name_hash(const void *a_void)
{
unsigned long ret;
OBJ_NAME *a = (OBJ_NAME *)a_void;