summaryrefslogtreecommitdiffstats
path: root/crypto/objects/o_names.c
diff options
context:
space:
mode:
authorGeoff Thorpe <geoff@openssl.org>2000-12-04 03:02:44 +0000
committerGeoff Thorpe <geoff@openssl.org>2000-12-04 03:02:44 +0000
commit97b1719583b3b0e096fdba29573678ac6fd6bae3 (patch)
tree3b3f24532f736677ac53571f55dfe0ef8935be63 /crypto/objects/o_names.c
parentb0dc680f71db4f79c01b41975f869f7346542098 (diff)
Make the remaining LHASH macro changes. This should leave no remaining
cases of function pointer casting in lh_new() calls - and leave only the lh_doall and lh_doall_arg cases to be finished.
Diffstat (limited to 'crypto/objects/o_names.c')
-rw-r--r--crypto/objects/o_names.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/crypto/objects/o_names.c b/crypto/objects/o_names.c
index db37ccf47c..ccf3a18726 100644
--- a/crypto/objects/o_names.c
+++ b/crypto/objects/o_names.c
@@ -27,12 +27,15 @@ static STACK_OF(NAME_FUNCS) *name_funcs_stack;
static unsigned long obj_name_hash(OBJ_NAME *a);
static int obj_name_cmp(OBJ_NAME *a,OBJ_NAME *b);
+static IMPLEMENT_LHASH_HASH_FN(obj_name_hash, OBJ_NAME *)
+static IMPLEMENT_LHASH_COMP_FN(obj_name_cmp, OBJ_NAME *)
+
int OBJ_NAME_init(void)
{
if (names_lh != NULL) return(1);
MemCheck_off();
- names_lh=lh_new((LHASH_HASH_FN_TYPE)obj_name_hash,
- (LHASH_COMP_FN_TYPE)obj_name_cmp);
+ names_lh=lh_new(LHASH_HASH_FN(obj_name_hash),
+ LHASH_COMP_FN(obj_name_cmp));
MemCheck_on();
return(names_lh != NULL);
}