From: Mike Frysinger Date: Sun, 21 Nov 2010 21:16:54 +0000 (-0500) Subject: m_xt: stop using xtables_set_revision() X-Git-Tag: v2.6.37~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be3c4d4f3c14875e459d27b8b095e29af8591489;p=thirdparty%2Fiproute2.git 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 --- diff --git a/tc/m_xt.c b/tc/m_xt.c index bfc49371f..ede991325 100644 --- a/tc/m_xt.c +++ b/tc/m_xt.c @@ -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);