diff options
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/mtree/compare.c | 5 | ||||
-rw-r--r-- | usr.sbin/mtree/create.c | 4 |
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, |