summaryrefslogtreecommitdiffstats
path: root/iptables-restore.c
diff options
context:
space:
mode:
authorIlles Marci <marci@balabit.hu>2003-03-03 08:08:37 +0000
committerHarald Welte <laforge@gnumonks.org>2003-03-03 08:08:37 +0000
commit63e9063a660809385fd17edb94da044c7c884e02 (patch)
tree4d7f9291c2ab6db9be14f83886a233361d83c381 /iptables-restore.c
parent26100fa186b9df8585a690e7efb3b13863efbe1f (diff)
make iptables-restore print the line number in case of an error
(Illes Marci <marci@balabit.hu>)
Diffstat (limited to 'iptables-restore.c')
-rw-r--r--iptables-restore.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/iptables-restore.c b/iptables-restore.c
index 13dcd259..8e193899 100644
--- a/iptables-restore.c
+++ b/iptables-restore.c
@@ -4,7 +4,7 @@
*
* This code is distributed under the terms of GNU GPL v2
*
- * $Id: iptables-restore.c,v 1.22 2002/08/07 09:07:41 laforge Exp $
+ * $Id: iptables-restore.c,v 1.23 2003/03/03 08:05:07 laforge Exp $
*/
#include <getopt.h>
@@ -101,7 +101,6 @@ int main(int argc, char *argv[])
{
iptc_handle_t handle;
char buffer[10240];
- unsigned int line = 0;
int c;
char curtable[IPT_TABLE_MAXNAMELEN + 1];
FILE *in;
@@ -110,6 +109,7 @@ int main(int argc, char *argv[])
program_name = "iptables-restore";
program_version = IPTABLES_VERSION;
+ line = 0;
#ifdef NO_SHARED_LIBS
init_extensions();