From 376f3ffd32f2c181cfae27d6c94bd854a75aad7c Mon Sep 17 00:00:00 2001 From: kadlec Date: Fri, 25 Jun 2004 11:18:57 +0000 Subject: Bastiaan Bakker's patch to combine iptables, iptables-save and iptables-restore for size reduction applied --- iptables-restore.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'iptables-restore.c') diff --git a/iptables-restore.c b/iptables-restore.c index e21cacc..c0ab99e 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 @@ -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]; -- cgit v1.2.3