]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
move 'int line' definition from ip6?tables.c into xtables.c
authorMaciej Zenczykowski <maze@google.com>
Tue, 5 Apr 2011 10:42:37 +0000 (12:42 +0200)
committerPatrick McHardy <kaber@trash.net>
Tue, 5 Apr 2011 10:42:37 +0000 (12:42 +0200)
Signed-off-by: Maciej Zenczykowski <maze@google.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
ip6tables.c
iptables.c
xtables.c

index 15508d6e2fa9e20d56be28a52d6f0f03086f6bc7..ea9a7abf2e70ba7311501670ea50a34944b84008 100644 (file)
@@ -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,
index 0995d6f31674feeee1c52ac7f1a26070eba1d2ab..cf27227803a8695a002e01dbad09596bab955849 100644 (file)
@@ -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 = {
index 4c708b8edbc249121dcbb6f21a563787f6a47f25..339a25b74c470649a8511528b3e1ee2353482b85 100644 (file)
--- a/xtables.c
+++ b/xtables.c
 #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;