From 6cc9220f185e46e90bbb2ff282efcacbfe10aa01 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Sat, 15 Jun 2013 22:19:23 +0200 Subject: src: constify first parameter of all nft_*_get 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 ff4c648..282225d 100644 --- a/src/expr_ops.h +++ b/src/expr_ops.h @@ -13,7 +13,7 @@ struct expr_ops { size_t alloc_len; int max_attr; int (*set)(struct nft_rule_expr *e, uint16_t type, const void *data, size_t data_len); - const void *(*get)(struct nft_rule_expr *e, uint16_t type, size_t *data_len); + const void *(*get)(const struct nft_rule_expr *e, uint16_t type, size_t *data_len); int (*parse)(struct nft_rule_expr *e, struct nlattr *attr); void (*build)(struct nlmsghdr *nlh, struct nft_rule_expr *e); int (*snprintf)(char *buf, size_t len, uint32_t type, uint32_t flags, struct nft_rule_expr *e); -- cgit v1.2.3