summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlaforge <laforge>2003-03-06 11:56:31 +0000
committerlaforge <laforge>2003-03-06 11:56:31 +0000
commitb224af5fedf260941f0cc411d778eb095718acca (patch)
treecc5363a2ab07e9b3d96e7dd5947689a5ea899e90
parenta0823c3706097432feebf2c9f02ddd5f7a7b0e3f (diff)
make gcc happy
-rw-r--r--iptables-restore.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/iptables-restore.c b/iptables-restore.c
index 8e19389..74f7db3 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.23 2003/03/03 08:05:07 laforge Exp $
+ * $Id: iptables-restore.c,v 1.24 2003/03/03 08:08:37 laforge Exp $
*/
#include <getopt.h>
@@ -155,7 +155,7 @@ int main(int argc, char *argv[])
/* Grab standard input. */
while (fgets(buffer, sizeof(buffer), in)) {
- int ret;
+ int ret = 0;
line++;
if (buffer[0] == '\n') continue;
@@ -166,7 +166,7 @@ int main(int argc, char *argv[])
DEBUGP("Calling commit\n");
ret = iptc_commit(&handle);
in_table = 0;
- } else if ((buffer[0] == '*') && (!in_table)){
+ } else if ((buffer[0] == '*') && (!in_table)) {
/* New table */
char *table;