summaryrefslogtreecommitdiffstats
path: root/usr.sbin/mtree/create.c
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2002-07-15 12:17:31 +0000
committerdes <des@FreeBSD.org>2002-07-15 12:17:31 +0000
commite0ecf9a2229a7244ef6cbd5e5a917c8b93982b0b (patch)
tree90ec4f73f6cca3405a0a0325e057dcb440ff6985 /usr.sbin/mtree/create.c
parenteaeed7f0ff114a17b4e2af8568892a67f4058d25 (diff)
downloadFreeBSD-src-e0ecf9a2229a7244ef6cbd5e5a917c8b93982b0b.zip
FreeBSD-src-e0ecf9a2229a7244ef6cbd5e5a917c8b93982b0b.tar.gz
Get rid of %qd, and unbreak Alpha build.
Diffstat (limited to 'usr.sbin/mtree/create.c')
-rw-r--r--usr.sbin/mtree/create.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/mtree/create.c b/usr.sbin/mtree/create.c
index 3db0502..3ab1602 100644
--- a/usr.sbin/mtree/create.c
+++ b/usr.sbin/mtree/create.c
@@ -57,6 +57,7 @@ static const char rcsid[] =
#include <ripemd.h>
#endif
#include <pwd.h>
+#include <stdint.h>
#include <stdio.h>
#include <time.h>
#include <unistd.h>
@@ -206,7 +207,8 @@ statf(indent, p)
if (keys & F_NLINK && p->fts_statp->st_nlink != 1)
output(indent, &offset, "nlink=%u", p->fts_statp->st_nlink);
if (keys & F_SIZE)
- output(indent, &offset, "size=%qd", p->fts_statp->st_size);
+ output(indent, &offset, "size=%jd",
+ (intmax_t)p->fts_statp->st_size);
if (keys & F_TIME)
output(indent, &offset, "time=%ld.%ld",
(long)p->fts_statp->st_mtimespec.tv_sec,
OpenPOWER on IntegriCloud