summaryrefslogtreecommitdiffstats
path: root/iptables-restore.c
diff options
context:
space:
mode:
authorBastiaan Bakker <bastiaan.bakker@lifeline.nl>2004-06-25 11:18:57 +0000
committerJoszef Kadlecsik <kadlec@blackhole.kfki.hu>2004-06-25 11:18:57 +0000
commit4e3771f04687657753f2a3666225341a3525f07e (patch)
tree09c8ba20c9147ac0d26d883bde436e57d2e4469a /iptables-restore.c
parent2057750071822d72200fe06f759009c216229542 (diff)
Bastiaan Bakker's patch to combine iptables, iptables-save and iptables-restore
for size reduction applied
Diffstat (limited to 'iptables-restore.c')
-rw-r--r--iptables-restore.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/iptables-restore.c b/iptables-restore.c
index e21cacc5..c0ab99e2 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.33 2004/02/01 22:03:27 gandalf Exp $
+ * $Id: iptables-restore.c,v 1.34 2004/05/26 16:04:48 gandalf Exp $
*/
#include <getopt.h>
@@ -99,7 +99,13 @@ static void free_argv(void) {
free(newargv[i]);
}
-int main(int argc, char *argv[])
+#ifdef IPTABLES_MULTI
+int
+iptables_restore_main(int argc, char *argv[])
+#else
+int
+main(int argc, char *argv[])
+#endif
{
iptc_handle_t handle = NULL;
char buffer[10240];