From 6c948532d2799bcc172053cac504c4aa5f016bba Mon Sep 17 00:00:00 2001 From: Justus Winter <4winter@informatik.uni-hamburg.de> Date: Thu, 15 May 2014 17:55:45 +0200 Subject: libihash: add hurd_ihash_value_valid * libihash/ihash.h (hurd_ihash_value_valid): New function. * libihash/ihash.c (index_empty): Use hurd_ihash_value_valid. --- libihash/ihash.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libihash/ihash.c') diff --git a/libihash/ihash.c b/libihash/ihash.c index fa29257b..74e9eddd 100644 --- a/libihash/ihash.c +++ b/libihash/ihash.c @@ -37,8 +37,7 @@ static inline int index_empty (hurd_ihash_t ht, unsigned int idx) { - return ht->items[idx].value == _HURD_IHASH_EMPTY - || ht->items[idx].value == _HURD_IHASH_DELETED; + return ! hurd_ihash_value_valid (ht->items[idx].value); } -- cgit v1.2.3