From: Christian Goeschel Ndjomouo Date: Thu, 4 Dec 2025 18:37:57 +0000 (-0500) Subject: lib: (pidutils.c) use uint64_t instead of ino_t for seamless cross-compatibility X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce809d79cc88cd1facda872fd8031b2a5c897e0d;p=thirdparty%2Futil-linux.git lib: (pidutils.c) use uint64_t instead of ino_t for seamless cross-compatibility Signed-off-by: Christian Goeschel Ndjomouo --- diff --git a/include/pidutils.h b/include/pidutils.h index 9d3257dfd..b2c575c19 100644 --- a/include/pidutils.h +++ b/include/pidutils.h @@ -9,6 +9,6 @@ #include -extern int ul_parse_pid_str(char *pidstr, pid_t *pid_num, ino_t *pfd_ino); +extern int ul_parse_pid_str(char *pidstr, pid_t *pid_num, uint64_t *pfd_ino); -#endif /* UTIL_LINUX_PIDUTILS_H */ \ No newline at end of file +#endif /* UTIL_LINUX_PIDUTILS_H */ diff --git a/lib/pidutils.c b/lib/pidutils.c index 56f3b8578..a7567eb3f 100644 --- a/lib/pidutils.c +++ b/lib/pidutils.c @@ -23,7 +23,7 @@ * Return: On success, 0 is returned. * On failure, a negative errno number will be returned. */ -int ul_parse_pid_str(char *pidstr, pid_t *pid_num, ino_t *pfd_ino) +int ul_parse_pid_str(char *pidstr, pid_t *pid_num, uint64_t *pfd_ino) { int rc; char *end = NULL; @@ -40,7 +40,7 @@ int ul_parse_pid_str(char *pidstr, pid_t *pid_num, ino_t *pfd_ino) if (*end == ':' && pfd_ino) { rc = ul_strtou64(++end, pfd_ino, 10); if (rc != 0) - return -ERANGE; + return -ERANGE; *end = '\0'; } if (errno != 0 || ((end && *end != '\0') || pidstr >= end))