diff --git a/src/check_subid_range.c b/src/check_subid_range.c index 5dc0bd7d..68266f55 100644 --- a/src/check_subid_range.c +++ b/src/check_subid_range.c @@ -13,7 +13,7 @@ #include #include -#include "atoi/strtou_noneg.h" +#include "atoi/str2i.h" #include "defines.h" #include "prototypes.h" #include "subordinateio.h" @@ -36,11 +36,9 @@ int main(int argc, char **argv) owner = argv[1]; check_uids = argv[2][0] == 'u'; errno = 0; - start = strtoul_noneg(argv[3], NULL, 10); - if (errno != 0) + if (str2ul(&start, argv[3]) == -1) exit(1); - count = strtoul_noneg(argv[4], NULL, 10); - if (errno != 0) + if (str2ul(&count, argv[4]) == -1) exit(1); if (check_uids) { if (have_sub_uids(owner, start, count))