diff options
author | jkh <jkh@FreeBSD.org> | 1996-01-13 14:25:04 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1996-01-13 14:25:04 +0000 |
commit | b589e2455ce90c494cdcf925ea0424aeb08636db (patch) | |
tree | 7a36bb0384f3ffef8c2c67f76bc0bbabad73052a /lib/libc | |
parent | bed17b4ad471f93622872621e87cf78bc33c98b1 (diff) | |
download | FreeBSD-src-b589e2455ce90c494cdcf925ea0424aeb08636db.zip FreeBSD-src-b589e2455ce90c494cdcf925ea0424aeb08636db.tar.gz |
Return pointer to new hash node when search inserts it (e.g. there
was some datum given).
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/stdlib/strhash.c | 6 |
1 files changed, 5 insertions, 1 deletions
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; |