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.
This commit is contained in:
David Lawrence 2000-05-08 23:50:37 +00:00
parent acbec87f20
commit 2a8fc4e9f7
2 changed files with 4 additions and 4 deletions

View file

@ -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;

View file

@ -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++;