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" <serge@hallyn.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
This commit is contained in:
Alejandro Colomar
2024-05-06 00:25:41 +02:00
parent 7f3ab84714
commit 1f7c00b8f7
+1 -1
View File
@@ -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 };