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:
@@ -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++;
|
||||
|
||||
Reference in New Issue
Block a user