From 284a3e67563a8984fb0f513e1dc27a2364a12ce2 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Tue, 22 Oct 2019 22:55:08 +0200 Subject: xshared: Share a common implementation of parse_rulenumber() The function is really small, but still copied four times. Signed-off-by: Phil Sutter Acked-by: Pablo Neira Ayuso --- iptables/xshared.h | 1 + 1 file changed, 1 insertion(+) (limited to 'iptables/xshared.h') diff --git a/iptables/xshared.h b/iptables/xshared.h index 0b9b357c..85bbfa12 100644 --- a/iptables/xshared.h +++ b/iptables/xshared.h @@ -186,5 +186,6 @@ void command_jump(struct iptables_command_state *cs, const char *jumpto); char cmd2char(int option); void add_command(unsigned int *cmd, const int newcmd, const int othercmds, int invert); +int parse_rulenumber(const char *rule); #endif /* IPTABLES_XSHARED_H */ -- cgit v1.2.3