diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2021-04-01 22:25:28 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2021-04-03 19:41:02 +0200 |
commit | f28813ec379e91e50e23de7f3990fced1281a061 (patch) | |
tree | 42a0769c3b5d29702a6ce30dfeaf0847433f0728 | |
parent | 31a57f195f1cda03741a18c3393b7bebddaacf1c (diff) |
cache: statify chain_cache_dump()
Only used internally in cache.c
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r-- | include/cache.h | 1 | ||||
-rw-r--r-- | src/cache.c | 3 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/cache.h b/include/cache.h index a892b7fc..087f9ba9 100644 --- a/include/cache.h +++ b/include/cache.h @@ -56,7 +56,6 @@ int cache_init(struct netlink_ctx *ctx, unsigned int flags); int cache_update(struct nft_ctx *nft, unsigned int flags, struct list_head *msgs); void cache_release(struct nft_cache *cache); -struct nftnl_chain_list *chain_cache_dump(struct netlink_ctx *ctx, int *err); void chain_cache_add(struct chain *chain, struct table *table); struct chain *chain_cache_find(const struct table *table, const struct handle *handle); diff --git a/src/cache.c b/src/cache.c index c9e1f22a..f7187ee7 100644 --- a/src/cache.c +++ b/src/cache.c @@ -217,7 +217,8 @@ static int chain_cache_init(struct netlink_ctx *ctx, struct table *table, return 0; } -struct nftnl_chain_list *chain_cache_dump(struct netlink_ctx *ctx, int *err) +static struct nftnl_chain_list *chain_cache_dump(struct netlink_ctx *ctx, + int *err) { struct nftnl_chain_list *chain_list; |