path: root/src/expr_ops.h
diff options
authorPablo Neira Ayuso <>2013-06-15 22:19:23 +0200
committerPablo Neira Ayuso <>2013-06-17 21:08:40 +0200
commit6cc9220f185e46e90bbb2ff282efcacbfe10aa01 (patch)
tree2ce75b5b5b280e60513a956e2d8bd5c83db365c5 /src/expr_ops.h
parentfc2ede69dcb0cbd2301b76fd89438a2ccb62ccfe (diff)
src: constify first parameter of all nft_*_get
Signed-off-by: Pablo Neira Ayuso <>
Diffstat (limited to 'src/expr_ops.h')
1 files changed, 1 insertions, 1 deletions
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);