Commit be3c4d4f authored by Mike Frysinger's avatar Mike Frysinger Committed by Stephen Hemminger

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: default avatarMike Frysinger <vapier@gentoo.org>
parent 5d805635
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment