diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2008-04-15 11:48:25 +0200 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2008-04-15 14:01:06 +0200 |
commit | 8b7c64d6ba156a99008fcd810cba874c73294333 (patch) | |
tree | 47489e2ac7ae083087ec7f0675f1c2e5fc2b4d7a /iptables-save.c | |
parent | ddcb288316c942a5b8de33edd5f03318db8906b7 (diff) |
Remove old functions, constants
Diffstat (limited to 'iptables-save.c')
-rw-r--r-- | iptables-save.c | 8 |
1 files changed, 4 insertions, 4 deletions
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) { |