From 51e5d29357644965bc6a8a4d1f3b2878936147f7 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Sat, 27 Nov 2021 00:18:28 +0100 Subject: xshared: Share exit_tryhelp() The function existed three times in identical form. Avoid having to declare extern int line in xshared.c by making it a parameter. Signed-off-by: Phil Sutter --- 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 3310954c..2c05b0d7 100644 --- a/iptables/xshared.h +++ b/iptables/xshared.h @@ -260,5 +260,6 @@ void save_rule_details(const char *iniface, unsigned const char *iniface_mask, int print_match_save(const struct xt_entry_match *e, const void *ip); void xtables_printhelp(const struct xtables_rule_match *matches); +void exit_tryhelp(int status, int line) __attribute__((noreturn)); #endif /* IPTABLES_XSHARED_H */ -- cgit v1.2.3