Commit 2a8fc4e9 authored by David Lawrence's avatar David Lawrence
Browse files

Quiet HP/UX warnings:

cc: "lhash.c", line 294: warning 714: Function "func" called with no prototype or definition in scope.
cc: "lhash.c", line 401: warning 714: Function called with no prototype or definition in scope.
cc: "lhash.c", line 422: warning 714: Function called with no prototype or definition in scope.
parent acbec87f
......@@ -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;
......
......@@ -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++;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment