From 8e3258a0a2070e02f607623646a56d12a57551c9 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Thu, 25 Apr 1996 04:58:42 +0000 Subject: (ihash_find): Change return type to void **. --- libihash/ihash.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'libihash') diff --git a/libihash/ihash.h b/libihash/ihash.h index 5d01ea1c..34ad4c84 100644 --- a/libihash/ihash.h +++ b/libihash/ihash.h @@ -1,6 +1,6 @@ /* Integer-keyed hash table functions. - Copyright (C) 1995 Free Software Foundation, Inc. + Copyright (C) 1995, 1996 Free Software Foundation, Inc. Written by Miles Bader @@ -74,9 +74,11 @@ void ihash_set_cleanup(ihash_t ht, occurs, ENOMEM is returned, otherwise 0. */ error_t ihash_add(ihash_t ht, int id, void *item, void ***locp); -/* Find and return the item in hash table HT with key ID, or NULL if it - doesn't exist. */ -void *ihash_find(ihash_t ht, int id); +/* Find and return a pointer to the item in hash table HT with key ID, or + NULL if it doesn't exist. The actual item data is got by dereferencing + the returned pointer, which can also be passed directly to + ihash_locp_remove (below). */ +void **ihash_find(ihash_t ht, int id); /* Call function FUN of one arg for each element of HT. FUN's only arg is a pointer to the value stored in the hash table. If FUN ever returns -- cgit v1.2.3