lib/getrange.c: getrange(): Add const to pointer

Now that we have const-generic macros, we can use a const pointer.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
This commit is contained in:
Alejandro Colomar 2024-04-15 13:47:26 +02:00 committed by Iker Pedrosa
parent 040ba6a853
commit 34f431f607

View File

@ -28,7 +28,7 @@ getrange(const char *range,
unsigned long *min, bool *has_min,
unsigned long *max, bool *has_max)
{
char *end;
const char *end;
if (NULL == range)
return -1;