From: Alejandro Colomar Date: Sun, 5 May 2024 22:25:41 +0000 (+0200) Subject: src/usermod.c: Fix const correctness X-Git-Tag: 4.17.0-rc1~208 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1f7c00b8f79c736ae1ec6648fc19d6e11d1bdcc6;p=thirdparty%2Fshadow.git src/usermod.c: Fix const correctness Now that we use liba2i's const-generic macros, we can (and must) use a 'const char **' endp where the input string is 'const char *'. Reviewed-by: "Serge E. Hallyn" Signed-off-by: Alejandro Colomar --- diff --git a/src/usermod.c b/src/usermod.c index 4e03afbb6..52d9dbb72 100644 --- a/src/usermod.c +++ b/src/usermod.c @@ -304,7 +304,7 @@ struct ulong_range static struct ulong_range getulong_range(const char *str) { - char *pos; + const char *pos; unsigned long first, last; struct ulong_range result = { .first = ULONG_MAX, .last = 0 };