m_xt: stop using xtables_set_revision()

iptables dropped the xtables_set_revision() function around version 1.4.9,
so set the rev directly ourselves.  This should be compatible back to the
original version m_xt itself is designed for.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
Mike Frysinger 2010-11-21 16:16:54 -05:00 committed by Stephen Hemminger
parent 5d8056357a
commit be3c4d4f3c
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ build_st(struct xtables_target *target, struct xt_entry_target *t)
target->t = xtables_calloc(1, size);
target->t->u.target_size = size;
strcpy(target->t->u.user.name, target->name);
xtables_set_revision(target->t->u.user.name, target->revision);
target->t->u.user.revision = target->revision;
if (target->init != NULL)
target->init(target->t);