From b85ad7a559ff5c7270254348873aebb39cafc519 Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Mon, 6 May 2024 00:25:41 +0200 Subject: [PATCH] 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 *'. Signed-off-by: Alejandro Colomar --- src/usermod.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 };