summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/util/find_uid.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/util/find_uid.c b/src/util/find_uid.c
index e4d4ca8be..22cf47c02 100644
--- a/src/util/find_uid.c
+++ b/src/util/find_uid.c
@@ -132,7 +132,7 @@ static errno_t get_uid_from_pid(const pid_t pid, uid_t *uid)
} else {
*e = '\0';
}
- num = strtouint32(p, &endptr, 10);
+ num = (uint32_t) strtoint32(p, &endptr, 10);
error = errno;
if (error != 0) {
DEBUG(1, ("strtol failed [%s].\n", strerror(error)));
@@ -143,11 +143,6 @@ static errno_t get_uid_from_pid(const pid_t pid, uid_t *uid)
return EINVAL;
}
- if (num >= UINT32_MAX) {
- DEBUG(1, ("uid out of range.\n"));
- return ERANGE;
- }
-
} else {
DEBUG(1, ("format error\n"));
return EINVAL;