]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
netlink_delinearize: fix compiler warning
authorPatrick McHardy <kaber@trash.net>
Thu, 9 Jan 2014 21:59:29 +0000 (21:59 +0000)
committerPatrick McHardy <kaber@trash.net>
Thu, 9 Jan 2014 21:59:29 +0000 (21:59 +0000)
src/netlink_delinearize.c: In function ‘meta_match_postprocess’:
src/netlink_delinearize.c:660:3: warning: passing argument 1 of ‘expr->left->ops->pctx_update’ from incompatible pointer type [enabled by default]
src/netlink_delinearize.c:660:3: note: expected ‘struct proto_ctx *’ but argument is of type ‘struct rule_pp_ctx *’

Signed-off-by: Patrick McHardy <kaber@trash.net>
src/netlink_delinearize.c

index 5a6cbfa5c1aafaa5ffce4fb777e3e4fb6c4aa0f2..8f6ee3818f247170f4bacb913a4983f4adffabff 100644 (file)
@@ -657,7 +657,7 @@ static void meta_match_postprocess(struct rule_pp_ctx *ctx,
 
        switch (expr->op) {
        case OP_EQ:
-               expr->left->ops->pctx_update(ctx, expr);
+               expr->left->ops->pctx_update(&ctx->pctx, expr);
 
                if (ctx->pbase == PROTO_BASE_INVALID &&
                    left->flags & EXPR_F_PROTOCOL)