From: Thomas Weißschuh Date: Thu, 1 Feb 2024 19:09:17 +0000 (+0100) Subject: lib/cpuset: make max variable const X-Git-Tag: v2.41-start~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2ef4a8d5bd612f198bc4164fd2801ab90d6330b5;p=thirdparty%2Futil-linux.git lib/cpuset: make max variable const Signed-off-by: Thomas Weißschuh --- diff --git a/lib/cpuset.c b/lib/cpuset.c index 098b8e5ae5..643537f6d9 100644 --- a/lib/cpuset.c +++ b/lib/cpuset.c @@ -287,7 +287,7 @@ static int nextnumber(const char *str, char **end, unsigned int *result) */ int cpulist_parse(const char *str, cpu_set_t *set, size_t setsize, int fail) { - size_t max = cpuset_nbits(setsize); + const size_t max = cpuset_nbits(setsize); const char *p, *q; char *end = NULL;