diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2009-01-14 20:06:29 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2009-01-14 20:06:29 +0100 |
commit | 3e353c58a138d87ae31a9a18ec716c08ba3dc3cf (patch) | |
tree | c39e7f47f8abe853f6e6fcd5e6fad17f6012c6db /src/filter.c | |
parent | 6ceaa21f2a40cce6a9c45e99a9164618250fe6a3 (diff) |
src: constify hashtable parameter in hash() callbacks
This patch constifies the hashtable parameter that is passed to the
hash callbacks registered when the hashtable is created.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/filter.c')
-rw-r--r-- | src/filter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/filter.c b/src/filter.c index 218ba0c..a3432a2 100644 --- a/src/filter.c +++ b/src/filter.c @@ -44,14 +44,14 @@ struct ct_filter { #define FILTER_POOL_SIZE 128 #define FILTER_POOL_LIMIT INT_MAX -static uint32_t hash(const void *data, struct hashtable *table) +static uint32_t hash(const void *data, const struct hashtable *table) { const uint32_t *f = data; return jhash_1word(*f, 0) % table->hashsize; } -static uint32_t hash6(const void *data, struct hashtable *table) +static uint32_t hash6(const void *data, const struct hashtable *table) { return jhash2(data, 4, 0) % table->hashsize; } |