aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2002-07-15 12:17:31 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2002-07-15 12:17:31 +0000
commitb3f379f65f3d70fa83a76a400529f97f7951f565 (patch)
tree90ec4f73f6cca3405a0a0325e057dcb440ff6985 /usr.sbin
parentced4deb156372dcbc91d72ffe539874be6d406e4 (diff)
downloadsrc-b3f379f65f3d70fa83a76a400529f97f7951f565.tar.gz
src-b3f379f65f3d70fa83a76a400529f97f7951f565.zip
Get rid of %qd, and unbreak Alpha build.
Notes
Notes: svn path=/head/; revision=100070
Diffstat (limited to 'usr.sbin')
-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 5393b5d1c66b..648f70c94f3a 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 3db05027bf9d..3ab160299624 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,