diff --git a/lib/dns/sec/openssl/include/openssl/lhash.h b/lib/dns/sec/openssl/include/openssl/lhash.h index e9d760893b..dd38186da6 100644 --- a/lib/dns/sec/openssl/include/openssl/lhash.h +++ b/lib/dns/sec/openssl/include/openssl/lhash.h @@ -83,8 +83,8 @@ typedef struct lhash_node_st typedef struct lhash_st { LHASH_NODE **b; - int (*comp)(); - unsigned long (*hash)(); + int (*comp)(void *, void *); + unsigned long (*hash)(void *); unsigned int num_nodes; unsigned int num_alloc_nodes; unsigned int p; diff --git a/lib/dns/sec/openssl/lhash.c b/lib/dns/sec/openssl/lhash.c index 5f27859187..7439a68d59 100644 --- a/lib/dns/sec/openssl/lhash.c +++ b/lib/dns/sec/openssl/lhash.c @@ -276,7 +276,7 @@ void lh_doall(LHASH *lh, void (*func)()) lh_doall_arg(lh,func,NULL); } -void lh_doall_arg(LHASH *lh, void (*func)(), void *arg) +void lh_doall_arg(LHASH *lh, void (*func)(void *, void *), void *arg) { int i; LHASH_NODE *a,*n; @@ -396,7 +396,7 @@ static LHASH_NODE **getrn(LHASH *lh, void *data, unsigned long *rhash) { LHASH_NODE **ret,*n1; unsigned long hash,nn; - int (*cf)(); + int (*cf)(void *, void *); hash=(*(lh->hash))(data); lh->num_hash_calls++;