From 4d66136082ce32f979bf992e68385ed033af057e Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Wed, 31 Jul 2024 18:51:03 +0200 Subject: src: drop obsolete hook argument form hook dump functions since commit b98fee20bfe2 ("mnl: revisit hook listing"), handle.chain is never set in this path, so 'hook' is always set to -1, so the hook arg can be dropped. Signed-off-by: Florian Westphal --- include/mnl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/mnl.h b/include/mnl.h index cd5a2053..c9502f32 100644 --- a/include/mnl.h +++ b/include/mnl.h @@ -90,7 +90,7 @@ int mnl_nft_flowtable_add(struct netlink_ctx *ctx, struct cmd *cmd, unsigned int flags); int mnl_nft_flowtable_del(struct netlink_ctx *ctx, struct cmd *cmd); -int mnl_nft_dump_nf_hooks(struct netlink_ctx *ctx, int family, int hook, +int mnl_nft_dump_nf_hooks(struct netlink_ctx *ctx, int family, const char *devname); int mnl_nft_event_listener(struct mnl_socket *nf_sock, unsigned int debug_mask, -- cgit v1.2.3