From 2b261897fa07006e8a46003f8448b69691555314 Mon Sep 17 00:00:00 2001 From: Varsha Rao Date: Wed, 19 Jul 2017 18:04:07 +0530 Subject: src: netlink: Remove variable nf_mon_sock. Remove variable nf_mon_sock of type structure mnl_socket to avoid duplicity. Instead variable nf_sock of the same type is passed as argument to netlink_monitor(). Also remove netlink_open_mon_sock() function definition, which is no longer required. Suggested-by: Pablo Neira Ayuso Signed-off-by: Varsha Rao Signed-off-by: Pablo Neira Ayuso --- src/rule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/rule.c') diff --git a/src/rule.c b/src/rule.c index 1d89feb9..7f83980c 100644 --- a/src/rule.c +++ b/src/rule.c @@ -1659,7 +1659,7 @@ static int do_command_monitor(struct netlink_ctx *ctx, struct cmd *cmd) monhandler.ctx = ctx; monhandler.loc = &cmd->location; - return netlink_monitor(&monhandler); + return netlink_monitor(&monhandler, ctx->nf_sock); } static int do_command_describe(struct netlink_ctx *ctx, struct cmd *cmd) -- cgit v1.2.3