summaryrefslogtreecommitdiff
path: root/src/cache.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2008-12-17 12:42:00 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2008-12-17 12:42:00 +0100
commit4e9cccfa0071ff51b489629bf2d69eefe6196ded (patch)
treea2bb91e838d775915c895e6928722b677d758c7e /src/cache.c
parentaa36f86194a51c776810ced5c3a6dcead30243fa (diff)
downloadconntrack-tools-4e9cccfa0071ff51b489629bf2d69eefe6196ded.tar.gz
conntrack-tools-4e9cccfa0071ff51b489629bf2d69eefe6196ded.zip
src: cleanup, rename hashtable_test() by hashtable_find()
This patch renames the function hashtable_test() by hashtable_find() which is a better name IMO to describe this function. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/cache.c')
-rw-r--r--src/cache.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cache.c b/src/cache.c
index 1d39fd5..c87aafa 100644
--- a/src/cache.c
+++ b/src/cache.c
@@ -254,7 +254,7 @@ static struct us_conntrack *__update(struct cache *c, struct nf_conntrack *ct)
u->ct = ct;
- u = (struct us_conntrack *) hashtable_test(c->h, u);
+ u = (struct us_conntrack *) hashtable_find(c->h, u);
if (u) {
__cache_update(c, u, ct);
return u;
@@ -341,7 +341,7 @@ int cache_test(struct cache *c, struct nf_conntrack *ct)
u->ct = ct;
- ret = hashtable_test(c->h, u);
+ ret = hashtable_find(c->h, u);
return ret != NULL;
}
@@ -354,7 +354,7 @@ int cache_del(struct cache *c, struct nf_conntrack *ct)
u->ct = ct;
- u = (struct us_conntrack *) hashtable_test(c->h, u);
+ u = (struct us_conntrack *) hashtable_find(c->h, u);
if (u) {
__cache_del(c, u);
return 1;
@@ -401,7 +401,7 @@ struct us_conntrack *cache_find(struct cache *c, struct nf_conntrack *ct)
u->ct = ct;
- return ((struct us_conntrack *) hashtable_test(c->h, u));
+ return ((struct us_conntrack *) hashtable_find(c->h, u));
}
struct us_conntrack *cache_get_conntrack(struct cache *c, void *data)