From b589e2455ce90c494cdcf925ea0424aeb08636db Mon Sep 17 00:00:00 2001 From: jkh Date: Sat, 13 Jan 1996 14:25:04 +0000 Subject: Return pointer to new hash node when search inserts it (e.g. there was some datum given). --- lib/libc/stdlib/strhash.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/libc') diff --git a/lib/libc/stdlib/strhash.c b/lib/libc/stdlib/strhash.c index 9349d0a..8e2230b 100644 --- a/lib/libc/stdlib/strhash.c +++ b/lib/libc/stdlib/strhash.c @@ -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; -- cgit v1.1