From: Alejandro Colomar Date: Sat, 2 Sep 2023 12:29:07 +0000 (+0200) Subject: lib/commonio.c: Use uintmax_t to print nlink_t X-Git-Tag: 4.15.0-rc1~104 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97e9d601338a6a8b004063185191f86e1034a0e7;p=thirdparty%2Fshadow.git lib/commonio.c: Use uintmax_t to print nlink_t See uintmax_t(3type). While at it, remove the useless cast to (void). Signed-off-by: Alejandro Colomar --- diff --git a/lib/commonio.c b/lib/commonio.c index df2986aaa..af2075062 100644 --- a/lib/commonio.c +++ b/lib/commonio.c @@ -110,9 +110,9 @@ static int check_link_count (const char *file, bool log) if (sb.st_nlink != 2) { if (log) { - (void) fprintf (shadow_logfd, - "%s: %s: lock file already used (nlink: %u)\n", - shadow_progname, file, sb.st_nlink); + fprintf(shadow_logfd, + "%s: %s: lock file already used (nlink: %ju)\n", + shadow_progname, file, (uintmax_t) sb.st_nlink); } return 0; }