Return pointer to new hash node when search inserts it (e.g. there

was some datum given).
This commit is contained in:
Jordan K. Hubbard 1996-01-13 14:25:04 +00:00
parent 9f0361fe4e
commit 4fab558b60

View File

@ -1,5 +1,5 @@
#ifndef lint
static char *rcsid = "$Header: /home/ncvs/src/lib/libc/stdlib/strhash.c,v 1.4 1995/05/30 05:41:55 rgrimes Exp $";
static char *rcsid = "$Header: /home/ncvs/src/lib/libc/stdlib/strhash.c,v 1.5 1995/10/22 14:53:17 phk Exp $";
#endif
/*
@ -37,6 +37,9 @@ static char *rcsid = "$Header: /home/ncvs/src/lib/libc/stdlib/strhash.c,v 1.4 19
/*
* $Log: strhash.c,v $
* Revision 1.5 1995/10/22 14:53:17 phk
* Mino cleanup, #includes & unused vars.
*
* Revision 1.4 1995/05/30 05:41:55 rgrimes
* Remove trailing whitespace.
*
@ -278,6 +281,7 @@ hash_search(hash_table *table, caddr_t key, void *datum,
new->data = datum;
new->next = table->buckets[bucket];
table->buckets[bucket] = new;
return new;
}
}
return GENERIC_NULL;