Skip to content

Commit

Permalink
src/usermod.c: Fix const correctness
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
alejandro-colomar committed Jun 14, 2024
1 parent eb4c261 commit 8ee58c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/usermod.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 };

Expand Down

0 comments on commit 8ee58c1

Please sign in to comment.