]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Make a typedef for the hash comparator function.
authorTed Lemon <source@isc.org>
Thu, 20 Apr 2000 00:57:57 +0000 (00:57 +0000)
committerTed Lemon <source@isc.org>
Thu, 20 Apr 2000 00:57:57 +0000 (00:57 +0000)
includes/hash.h

index 50fad8b4d95561ff6c0440d8d9fb824f73138ebc..5ad37c11bee2034ef3f0e507327607721f5e31e5 100644 (file)
@@ -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);
 };