From 97e9d601338a6a8b004063185191f86e1034a0e7 Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Sat, 2 Sep 2023 14:29:07 +0200 Subject: [PATCH] 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 --- lib/commonio.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/commonio.c b/lib/commonio.c index df2986aa..af207506 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; }