提交 b8feddae 编写于 作者: R Richard Levitte

Get the right cast for lhash callback functions.

上级 a9daa467
......@@ -67,8 +67,8 @@ int OBJ_NAME_new_index(unsigned long (*hash_func)(const char *),
{
MemCheck_off();
name_funcs = OPENSSL_malloc(sizeof(NAME_FUNCS));
name_funcs->hash_func = lh_strhash;
name_funcs->cmp_func = strcmp;
name_funcs->hash_func = (LHASH_HASH_FN_TYPE)lh_strhash;
name_funcs->cmp_func = (LHASH_COMP_FN_TYPE)strcmp;
name_funcs->free_func = 0; /* NULL is often declared to
* ((void *)0), which according
* to Compaq C is not really
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册