diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2012-01-04 14:31:41 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2012-01-10 01:54:45 +0100 |
commit | 79ab299bfb20b7fc1982ca90d77d8b908b824fea (patch) | |
tree | a7fe20e7685f967da400675c42fce9f6f634a30f /include | |
parent | 598e465087365db1fa36b67aa53d291e400ec5b1 (diff) | |
download | conntrack-tools-79ab299bfb20b7fc1982ca90d77d8b908b824fea.tar.gz conntrack-tools-79ab299bfb20b7fc1982ca90d77d8b908b824fea.zip |
conntrackd: simplify cache_get_extra function
This patch simplifies cache_get_extra which now takes only one
parameter that is the cache_object. With it, the extra area can be
calculated.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/cache.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/cache.h b/include/cache.h index 02bb386..65f7e3a 100644 --- a/include/cache.h +++ b/include/cache.h @@ -148,7 +148,7 @@ struct cache_object *cache_find(struct cache *c, void *ptr, int *pos); void cache_stats(const struct cache *c, int fd); void cache_stats_extended(const struct cache *c, int fd); struct cache_object *cache_data_get_object(struct cache *c, void *data); -void *cache_get_extra(struct cache *, void *); +void *cache_get_extra(struct cache_object *); void cache_iterate(struct cache *c, void *data, int (*iterate)(void *data1, void *data2)); void cache_iterate_limit(struct cache *c, void *data, uint32_t from, uint32_t steps, int (*iterate)(void *data1, void *data2)); |