From b4d882bbad9796dbc43374eefa5571e754071d3a Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Fri, 13 May 2016 19:38:33 +0200 Subject: include: constify nlexpr field in location structure MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- include/nftables.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/nftables.h b/include/nftables.h index cf19de82..d3f471b7 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; }; }; }; -- cgit v1.2.3