From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.netfilter.org (mail.netfilter.org [217.70.188.207]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 65B0B1F9ECD for ; Tue, 17 Dec 2024 21:21:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.188.207 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734470465; cv=none; b=aRg8BCsP7JIPV4Zd5gg7SfWYxDnZLCkoqxkAB8tBFNGJBcyy+64qWUTpyrbwjSdRLoeItr/nwrAtrKOv8PNVo4sTnbJO1NxDwLY0h6wz5quUOxDm5awxWGhzZvHbZc7R704hx3Z1ugPwdqHhNYoCZ/PBrEeU0iwn648wRfNoOFI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734470465; c=relaxed/simple; bh=f+kAFma0JdvdUREsF+uOaXxJl8HKI69w+Df0iJcegBE=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=QFLJPFP6p8HisOgvj++x+3gldZZSai9K86/ZF9B1Zzs+muS7SIsM84/VF02TfytscLuSuRToq27nTrnjGRpssUN0G6J5M9G6AwIeUW9kHWecwtrScZyXhgo60dmx/fm6SDXa/GZvtPMu0LaSVFDFVW5mgse1ODUNhmnmSgCnM7Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=netfilter.org; spf=pass smtp.mailfrom=netfilter.org; arc=none smtp.client-ip=217.70.188.207 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=netfilter.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=netfilter.org From: Pablo Neira Ayuso To: netfilter-devel@vger.kernel.org Subject: [PATCH nft 4/6] rule: constify set_is_non_concat_range() Date: Tue, 17 Dec 2024 22:15:14 +0100 Message-Id: <20241217211516.1644623-5-pablo@netfilter.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20241217211516.1644623-1-pablo@netfilter.org> References: <20241217211516.1644623-1-pablo@netfilter.org> Precedence: bulk X-Mailing-List: netfilter-devel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This is read-only, constify it. Signed-off-by: Pablo Neira Ayuso --- 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