summaryrefslogtreecommitdiffstats
path: root/include/libnftables/expr.h
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2013-04-14 14:34:53 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2013-04-14 15:30:56 +0200
commit00ea30a840c0a7620b3a227198ded78b49d7e67e (patch)
tree5017f332a0ca606bfb915715a11a149e28605385 /include/libnftables/expr.h
parent5ff34f1434c6e7af8762de826c02f05ecd109783 (diff)
src: constify nft_*_attr_set and nft_*_attr_set_str
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/libnftables/expr.h')
-rw-r--r--include/libnftables/expr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/libnftables/expr.h b/include/libnftables/expr.h
index 6d5d4e3..2478998 100644
--- a/include/libnftables/expr.h
+++ b/include/libnftables/expr.h
@@ -19,7 +19,7 @@ void nft_rule_expr_set(struct nft_rule_expr *expr, uint16_t type, const void *da
void nft_rule_expr_set_u8(struct nft_rule_expr *expr, uint16_t type, uint8_t data);
void nft_rule_expr_set_u32(struct nft_rule_expr *expr, uint16_t type, uint32_t data);
void nft_rule_expr_set_u64(struct nft_rule_expr *expr, uint16_t type, uint64_t data);
-void nft_rule_expr_set_str(struct nft_rule_expr *expr, uint16_t type, char *str);
+void nft_rule_expr_set_str(struct nft_rule_expr *expr, uint16_t type, const char *str);
const void *nft_rule_expr_get(struct nft_rule_expr *expr, uint16_t type, size_t *data_len);
uint8_t nft_rule_expr_get_u8(struct nft_rule_expr *expr, uint16_t type);