From: Ted Lemon Date: Thu, 20 Apr 2000 00:57:57 +0000 (+0000) Subject: Make a typedef for the hash comparator function. X-Git-Tag: V3-BETA-2-PATCH-1~237 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e67f8322795fca75427718f85b49cdaa8c355d38;p=thirdparty%2Fdhcp.git Make a typedef for the hash comparator function. --- diff --git a/includes/hash.h b/includes/hash.h index 50fad8b4d..5ad37c11b 100644 --- a/includes/hash.h +++ b/includes/hash.h @@ -53,12 +53,14 @@ struct hash_bucket { void *value; }; +typedef int (*hash_comparator_t)(const void *, const void *, size_t); + struct hash_table { unsigned hash_count; struct hash_bucket *buckets [DEFAULT_HASH_SIZE]; hash_reference referencer; hash_dereference dereferencer; - int (*cmp) (const void *, const void *, size_t); + hash_comparator_t cmp; int (*do_hash) (const unsigned char *, unsigned, unsigned); };