hash: minor cleanups
authorEric Blake <ebb9@byu.net>
Thu, 18 Jun 2009 03:04:55 +0000 (21:04 -0600)
committerEric Blake <ebb9@byu.net>
Thu, 18 Jun 2009 04:23:18 +0000 (22:23 -0600)
commitf414a5002a73de9ea44dc4f81e0ecbbc26deb07f
treeffaf1aea0cad650920cd43f3e2b8af2ef48e0512
parent14092765ada78e9ef99572192a6fd1c39ea03834
hash: minor cleanups

* lib/hash.h (hash_entry): Make opaque, by moving...
* lib/hash.c (hash_entry): ...here.
(hash_insert): Clarify restrictions on what can be inserted.
(hash_get_next): Clarify when it is safe to remove an element
during traversal.
(check_tuning): Skip verification when tuning is known safe.
(hash_initialize): Clarify restrictions on tuning.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
lib/hash.c
lib/hash.h