Signed-off-by: Alejandro Colomar <colomar.6.4.3@xxxxxxxxx> --- man3/getpwent_r.3 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/man3/getpwent_r.3 b/man3/getpwent_r.3 index b6c1c281f..ef4c01c21 100644 --- a/man3/getpwent_r.3 +++ b/man3/getpwent_r.3 @@ -179,6 +179,7 @@ in the stream with all other threads. #define _GNU_SOURCE #include <pwd.h> #include <stdio.h> +#include <stdint.h> #define BUFLEN 4096 int @@ -194,8 +195,8 @@ main(void) i = getpwent_r(&pw, buf, sizeof(buf), &pwp); if (i) break; - printf("%s (%d)\etHOME %s\etSHELL %s\en", pwp\->pw_name, - pwp\->pw_uid, pwp\->pw_dir, pwp\->pw_shell); + printf("%s (%jd)\etHOME %s\etSHELL %s\en", pwp\->pw_name, + (intmax_t) pwp\->pw_uid, pwp\->pw_dir, pwp\->pw_shell); } endpwent(); exit(EXIT_SUCCESS); -- 2.28.0