From 6b60dc5be58a5781cacc4e6f238454d5e8421760 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Mon, 1 Feb 2016 19:24:38 +0100 Subject: extensions: rename xt_buf to xt_xlate Use a more generic name for this object to prepare the introduction of other translation specific fields. Signed-off-by: Pablo Neira Ayuso --- extensions/libxt_helper.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'extensions/libxt_helper.c') diff --git a/extensions/libxt_helper.c b/extensions/libxt_helper.c index 971ce4ab..9df41630 100644 --- a/extensions/libxt_helper.c +++ b/extensions/libxt_helper.c @@ -46,11 +46,11 @@ static void helper_save(const void *ip, const struct xt_entry_match *match) } static int helper_xlate(const struct xt_entry_match *match, - struct xt_buf *buf, int numeric) + struct xt_xlate *xl, int numeric) { const struct xt_helper_info *info = (const void *)match->data; - xt_buf_add(buf, "ct helper%s \\\"%s\\\" ", + xt_xlate_add(xl, "ct helper%s \\\"%s\\\" ", info->invert ? " !=" : "", info->name); return 1; -- cgit v1.2.3