move 'int line' definition from ip6?tables.c into xtables.c
PATCH 1/1 move 'int line' definition from ip6?tables.c into xtables.c
From: Maciej Żenczykowski <[email protected]>
Signed-off-by Maciej Zenczykowski <[email protected]>
--- ip6tables.c | 6 ------ iptables.c | 6 ------ xtables.c | 6 ++++++ 3 files changed, 6 insertions(+), 12 deletions(-)
ip6tables.c +0 -6
@@ -127,12 +127,6 @@ static struct option original_opts[] = { {NULL}, }; -/* we need this for ip6tables-restore. ip6tables-restore.c sets line to the -* current line of the input file, in order to give a more precise error -* message. ip6tables itself doesn't need this, so it is initialized to the -* magic number of -1 */ -int line =-1 ; -void ip6tables_exit_error (enum xtables_exittype status,const char *msg, ...) __attribute__((noreturn,format (printf,2 ,3 )));struct xtables_globals ip6tables_globals = { .option_offset = 0,
iptables.c +0 -6
@@ -126,12 +126,6 @@ static struct option original_opts[] = { {NULL}, }; -/* we need this for iptables-restore. iptables-restore.c sets line to the -* current line of the input file, in order to give a more precise error -* message. iptables itself doesn't need this, so it is initialized to the -* magic number of -1 */ -int line =-1 ; -void iptables_exit_error (enum xtables_exittype status,const char *msg, ...) __attribute__((noreturn,format (printf,2 ,3 ))); struct xtables_globals iptables_globals = {
xtables.c +6 -0
@@ -57,6 +57,12 @@#define PROC_SYS_MODPROBE "/proc/sys/kernel/modprobe"#endif +/* we need this for ip6?tables-restore. ip6?tables-restore.c sets line to the +* current line of the input file, in order to give a more precise error +* message. ip6?tables itself doesn't need this, so it is initialized to the +* magic number of -1 */ +int line =-1 ; +void basic_exit_err (enum xtables_exittype status,const char *msg, ...) __attribute__((noreturn,format (printf,2 ,3 )));struct xtables_globals *xt_params =NULL ;
Signature · 6 lines
1.7.3.1 -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 1 line · Maciej Żenczykowski
From: Maciej Żenczykowski <[email protected]>
Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html