diff options
author | kib <kib@FreeBSD.org> | 2017-01-13 13:37:09 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2017-01-13 13:37:09 +0000 |
commit | a0454e7cff5b13632ab8c24479efd1074f2f8767 (patch) | |
tree | a513a4560fc50c02cb44f7a79c5b3aa4d0570725 /bin | |
parent | 2eaa0f81174966046fba99f19c1f0563fe8ccd78 (diff) | |
download | FreeBSD-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.c | 3 |
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)); /* |