The following commit has been merged in the master branch: commit c4b0e955f9b0df9b3fd23c4a109448d202ef05d0 Author: Simon Wunderlich siwu@hrz.tu-chemnitz.de Date: Sat Apr 28 19:53:28 2007 +0200
- fix hash.h comment
diff --git a/hash.h b/hash.h index af18ada..1f7ccc5 100644 --- a/hash.h +++ b/hash.h @@ -74,7 +74,7 @@ int hash_add(struct hashtable_t *hash, void *data); * we just need the key for comparing. */ void *hash_remove(struct hashtable_t *hash, void *data);
-/* adds data to the hashtable. returns 0 on success, -1 on error */ +/* finds data, based on the key in keydata. returns the found data on success, or NULL on error */ void *hash_find(struct hashtable_t *hash, void *keydata);
/* resize the hash, returns the pointer to the new hash or NULL on error. removes the old hash on success */