The location shouldn't ever alter the expression. And this fixes this compilation warning: netlink_delinearize.c: In function ‘netlink_parse_expr’: netlink_delinearize.c:1008:10: warning: assignment discards ‘const’ qualifier from pointer target type loc.nle = nle; ^ Signed-off-by: Pablo Neira Ayuso <pablo@xxxxxxxxxxxxx> --- include/nftables.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/nftables.h b/include/nftables.h index cf19de8..d3f471b 100644 --- a/include/nftables.h +++ b/include/nftables.h @@ -52,7 +52,7 @@ struct location { unsigned int last_column; }; struct { - void *nle; + const void *nle; }; }; }; -- 2.1.4 -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html