summaryrefslogtreecommitdiffstats
path: root/xtables.c
diff options
context:
space:
mode:
authorMaciej Zenczykowski <maze@google.com>2011-04-05 12:42:37 +0200
committerPatrick McHardy <kaber@trash.net>2011-04-05 12:42:37 +0200
commit37911de507d0597980ad218a044a482501a21b01 (patch)
treef0f016508aa034d594b45ed6f1ca976fe524627f /xtables.c
parent742e9a43c314b45a76acdac8f53d36f1337154bf (diff)
move 'int line' definition from ip6?tables.c into xtables.c
Signed-off-by: Maciej Zenczykowski <maze@google.com> Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'xtables.c')
-rw-r--r--xtables.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/xtables.c b/xtables.c
index 4c708b8e..339a25b7 100644
--- a/xtables.c
+++ b/xtables.c
@@ -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;