From 89122493a39f76a530ee0db862986d63b9186e83 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Thu, 28 Sep 2017 17:17:43 +0200 Subject: erec_print: Pass output FILE pointer to netlink_dump_expr() It was a bit odd that erec_print() outputs to a given FILE pointer but then calls netlink_dump_expr() which just prints to stdout. Fix this by passing the given FILE pointer along so output is guaranteed to go to the same destination. Signed-off-by: Phil Sutter Signed-off-by: Pablo Neira Ayuso --- include/netlink.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/netlink.h b/include/netlink.h index b395cf1c..79dc08f8 100644 --- a/include/netlink.h +++ b/include/netlink.h @@ -184,7 +184,7 @@ extern void netlink_dump_chain(const struct nftnl_chain *nlc, extern void netlink_dump_rule(const struct nftnl_rule *nlr, unsigned int debug_mask); extern void netlink_dump_expr(const struct nftnl_expr *nle, - unsigned int debug_mask); + FILE *fp, unsigned int debug_mask); extern void netlink_dump_set(const struct nftnl_set *nls, unsigned int debug_mask); extern void netlink_dump_obj(struct nftnl_obj *nlo, unsigned int debug_mask); -- cgit v1.2.3