summaryrefslogtreecommitdiff
path: root/includes/omapip/hash.h
diff options
context:
space:
mode:
authorShane Kerr <shane@isc.org>2006-07-25 10:01:33 +0000
committerShane Kerr <shane@isc.org>2006-07-25 10:01:33 +0000
commita3ea21b5c8ae54ba2521745741ef6af79b185633 (patch)
treecfb3167a9152f293fdeba24a42ebb82a9ce5e36c /includes/omapip/hash.h
parent65246b46bb0540642a918e10ac72e3fa8ad8338c (diff)
downloadisc-dhcp-DHCPv6_socket_base.tar.gz
Re-synching the branch with HEAD fixes.DHCPv6_socket_base
Diffstat (limited to 'includes/omapip/hash.h')
-rw-r--r--includes/omapip/hash.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/includes/omapip/hash.h b/includes/omapip/hash.h
index 15f2398f..2a588496 100644
--- a/includes/omapip/hash.h
+++ b/includes/omapip/hash.h
@@ -64,11 +64,13 @@ 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;
hash_comparator_t cmp;
unsigned (*do_hash)(const void *, unsigned, unsigned);
+
+ /* This must remain the last entry in this table. */
+ struct hash_bucket *buckets [1];
};
struct named_hash {