This is read-only, constify it. Signed-off-by: Pablo Neira Ayuso <pablo@xxxxxxxxxxxxx> --- include/rule.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/rule.h b/include/rule.h index 238be23eca90..86477c709544 100644 --- a/include/rule.h +++ b/include/rule.h @@ -423,7 +423,7 @@ static inline bool set_is_interval(uint32_t set_flags) return set_flags & NFT_SET_INTERVAL; } -static inline bool set_is_non_concat_range(struct set *s) +static inline bool set_is_non_concat_range(const struct set *s) { return (s->flags & NFT_SET_INTERVAL) && s->desc.field_count <= 1; } -- 2.30.2