summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2017-01-13 13:37:09 +0000
committerkib <kib@FreeBSD.org>2017-01-13 13:37:09 +0000
commita0454e7cff5b13632ab8c24479efd1074f2f8767 (patch)
treea513a4560fc50c02cb44f7a79c5b3aa4d0570725 /bin
parent2eaa0f81174966046fba99f19c1f0563fe8ccd78 (diff)
downloadFreeBSD-src-a0454e7cff5b13632ab8c24479efd1074f2f8767.zip
FreeBSD-src-a0454e7cff5b13632ab8c24479efd1074f2f8767.tar.gz
MFC r311522:
Use type-independent formats for printing nlink_t and ino_t.
Diffstat (limited to 'bin')
-rw-r--r--bin/pax/gen_subs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/pax/gen_subs.c b/bin/pax/gen_subs.c
index 232ee77..0e2a1e8 100644
--- a/bin/pax/gen_subs.c
+++ b/bin/pax/gen_subs.c
@@ -109,7 +109,8 @@ ls_list(ARCHD *arcn, time_t now, FILE *fp)
*/
if (strftime(f_date,DATELEN,timefrmt,localtime(&(sbp->st_mtime))) == 0)
f_date[0] = '\0';
- (void)fprintf(fp, "%s%2u %-12s %-12s ", f_mode, sbp->st_nlink,
+ (void)fprintf(fp, "%s%2ju %-12s %-12s ", f_mode,
+ (uintmax_t)sbp->st_nlink,
name_uid(sbp->st_uid, 1), name_gid(sbp->st_gid, 1));
/*
OpenPOWER on IntegriCloud