summaryrefslogtreecommitdiffstats
path: root/contrib/mtree/spec.c
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 /contrib/mtree/spec.c
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 'contrib/mtree/spec.c')
-rw-r--r--contrib/mtree/spec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/mtree/spec.c b/contrib/mtree/spec.c
index 0fb921d..6fbe6f5 100644
--- a/contrib/mtree/spec.c
+++ b/contrib/mtree/spec.c
@@ -363,7 +363,8 @@ dump_nodes(FILE *fp, const char *dir, NODE *root, int pathlast)
appendfield(fp, pathlast, "device=%#jx",
(uintmax_t)cur->st_rdev);
if (MATCHFLAG(F_NLINK))
- appendfield(fp, pathlast, "nlink=%d", cur->st_nlink);
+ appendfield(fp, pathlast, "nlink=%ju",
+ (uintmax_t)cur->st_nlink);
if (MATCHFLAG(F_SLINK))
appendfield(fp, pathlast, "link=%s",
vispath(cur->slink));
OpenPOWER on IntegriCloud