summaryrefslogtreecommitdiffstats
path: root/sbin/restore/interactive.c
diff options
context:
space:
mode:
authormdf <mdf@FreeBSD.org>2012-09-27 23:31:06 +0000
committermdf <mdf@FreeBSD.org>2012-09-27 23:31:06 +0000
commite76336791156e518c57a0aa274e1652774931971 (patch)
tree51028e29caefe265e99cac58ecb1cce380def92e /sbin/restore/interactive.c
parent908993ebfad03e82e8f3038681a0041f4766098e (diff)
downloadFreeBSD-src-e76336791156e518c57a0aa274e1652774931971.zip
FreeBSD-src-e76336791156e518c57a0aa274e1652774931971.tar.gz
Fix sbin/ build with a 64-bit ino_t.
Original code by: Gleb Kurtsou
Diffstat (limited to 'sbin/restore/interactive.c')
-rw-r--r--sbin/restore/interactive.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sbin/restore/interactive.c b/sbin/restore/interactive.c
index 3cd311d..05d1a58 100644
--- a/sbin/restore/interactive.c
+++ b/sbin/restore/interactive.c
@@ -47,6 +47,7 @@ __FBSDID("$FreeBSD$");
#include <glob.h>
#include <limits.h>
#include <setjmp.h>
+#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -675,7 +676,8 @@ formatf(struct afile *list, int nentry)
for (j = 0; j < columns; j++) {
fp = &list[j * lines + i];
if (vflag) {
- fprintf(stderr, "%*d ", precision, fp->fnum);
+ fprintf(stderr, "%*ju ",
+ precision, (uintmax_t)fp->fnum);
fp->len += precision + 1;
}
if (haveprefix) {
OpenPOWER on IntegriCloud