diff options
Diffstat (limited to 'lib/libc/stdlib/strhash.c')
| -rw-r--r-- | lib/libc/stdlib/strhash.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/lib/libc/stdlib/strhash.c b/lib/libc/stdlib/strhash.c index 0b50ce020fdd..21223127a5c7 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.3 1995/03/28 08:41:02 jkh Exp $"; +static char *rcsid = "$Header: /home/ncvs/src/lib/libc/stdlib/strhash.c,v 1.6 1996/01/13 14:25:04 jkh Exp $"; #endif /* @@ -37,6 +37,16 @@ static char *rcsid = "$Header: /home/ncvs/src/lib/libc/stdlib/strhash.c,v 1.3 19 /* * $Log: strhash.c,v $ + * Revision 1.6 1996/01/13 14:25:04 jkh + * Return pointer to new hash node when search inserts it (e.g. there + * was some datum given). + * + * 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. + * * Revision 1.3 1995/03/28 08:41:02 jkh * Fix a missing _hash() to prevent namespace pollution with the db/hash routines. * Grrr. If the dbhash routines weren't grossly overengineered I wouldn't @@ -94,6 +104,7 @@ static char *rcsid = "$Header: /home/ncvs/src/lib/libc/stdlib/strhash.c,v 1.3 19 #include <stdio.h> +#include <stdlib.h> #include <string.h> #include <sys/types.h> #include <strhash.h> @@ -274,6 +285,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; |
