From 8b7c64d6ba156a99008fcd810cba874c73294333 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Tue, 15 Apr 2008 11:48:25 +0200 Subject: Remove old functions, constants --- iptables-save.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'iptables-save.c') diff --git a/iptables-save.c b/iptables-save.c index 4272202e..51127cde 100644 --- a/iptables-save.c +++ b/iptables-save.c @@ -122,7 +122,7 @@ static int non_zero(const void *ptr, size_t size) static int print_match(const struct ipt_entry_match *e, const struct ipt_ip *ip) { - struct iptables_match *match + struct xtables_match *match = find_match(e->u.user.name, TRY_LOAD, NULL); if (match) { @@ -222,7 +222,7 @@ static void print_rule(const struct ipt_entry *e, /* Print targinfo part */ t = ipt_get_target((struct ipt_entry *)e); if (t->u.user.name[0]) { - struct iptables_target *target + struct xtables_target *target = find_target(t->u.user.name, TRY_LOAD); if (!target) { @@ -292,7 +292,7 @@ static int do_output(const char *tablename) time_t now = time(NULL); printf("# Generated by iptables-save v%s on %s", - IPTABLES_VERSION, ctime(&now)); + XTABLES_VERSION, ctime(&now)); printf("*%s\n", tablename); /* Dump out chain names first, @@ -355,7 +355,7 @@ main(int argc, char *argv[]) int c; program_name = "iptables-save"; - program_version = IPTABLES_VERSION; + program_version = XTABLES_VERSION; lib_dir = getenv("XTABLES_LIBDIR"); if (lib_dir == NULL) { -- cgit v1.2.3