From ec75831c439ebd3475e0ba6766188d963538129a Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Tue, 6 Aug 2013 11:36:54 +0200 Subject: src: fully constify nft_*_get functions We have several char * field that were not constify to avoid gcc compilation warnings when calling free. Since (99d2574 src: add xfree and use it), we can fully constify these objects fields without trouble. Signed-off-by: Pablo Neira Ayuso --- src/expr_ops.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/expr_ops.h') diff --git a/src/expr_ops.h b/src/expr_ops.h index 78413fc..a46a309 100644 --- a/src/expr_ops.h +++ b/src/expr_ops.h @@ -16,7 +16,7 @@ struct nft_rule_expr; struct expr_ops { struct list_head head; - char *name; + const char *name; size_t alloc_len; int max_attr; int (*set)(struct nft_rule_expr *e, uint16_t type, const void *data, size_t data_len); -- cgit v1.2.3