summaryrefslogtreecommitdiffstats
path: root/iptables/xshared.h
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2021-11-27 00:18:28 +0100
committerPhil Sutter <phil@nwl.cc>2021-12-16 14:30:29 +0100
commit51e5d29357644965bc6a8a4d1f3b2878936147f7 (patch)
treee2ce6355b527d1de1629dbacd83d4923e1c03c48 /iptables/xshared.h
parent56ac0452a4968f1af8d3ad1717c8646593177155 (diff)
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 <phil@nwl.cc>
Diffstat (limited to 'iptables/xshared.h')
-rw-r--r--iptables/xshared.h1
1 files changed, 1 insertions, 0 deletions
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 */