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 /src/sync-alarm.c | |
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 'src/sync-alarm.c')
-rw-r--r-- | src/sync-alarm.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/sync-alarm.c b/src/sync-alarm.c index 65154a1..03481fd 100644 --- a/src/sync-alarm.c +++ b/src/sync-alarm.c @@ -110,8 +110,7 @@ static int alarm_recv(const struct nethdr *net) static void alarm_enqueue(struct cache_object *obj, int query) { - struct cache_alarm *ca = - cache_get_extra(STATE(mode)->internal->ct.data, obj); + struct cache_alarm *ca = cache_get_extra(obj); if (queue_add(STATE_SYNC(tx_queue), &ca->qnode) > 0) cache_object_get(obj); } |