summaryrefslogtreecommitdiffstats
path: root/usr.sbin/mtree
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
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')
-rw-r--r--usr.sbin/mtree/compare.c5
-rw-r--r--usr.sbin/mtree/create.c4
2 files changed, 6 insertions, 3 deletions
diff --git a/usr.sbin/mtree/compare.c b/usr.sbin/mtree/compare.c
index 5393b5d..648f70c 100644
--- a/usr.sbin/mtree/compare.c
+++ b/usr.sbin/mtree/compare.c
@@ -54,6 +54,7 @@ static const char rcsid[] =
#ifdef RMD160
#include <ripemd.h>
#endif
+#include <stdint.h>
#include <stdio.h>
#include <time.h>
#include <unistd.h>
@@ -175,8 +176,8 @@ typeerr: LABEL;
if (s->flags & F_SIZE && s->st_size != p->fts_statp->st_size &&
!S_ISDIR(p->fts_statp->st_mode)) {
LABEL;
- (void)printf("%ssize expected %qd found %qd\n",
- tab, s->st_size, p->fts_statp->st_size);
+ (void)printf("%ssize expected %jd found %jd\n", tab,
+ (intmax_t)s->st_size, (intmax_t)p->fts_statp->st_size);
tab = "\t";
}
/*
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