diff options
author | mdf <mdf@FreeBSD.org> | 2012-09-27 23:31:19 +0000 |
---|---|---|
committer | mdf <mdf@FreeBSD.org> | 2012-09-27 23:31:19 +0000 |
commit | a782f0b8bd315c02033a4fb363e550bd467101c7 (patch) | |
tree | 8a4bdcc7b13b351076583f8136d9f3cd310718b6 /usr.sbin/makefs | |
parent | 8ce8b3ae17aae9323001285d2530d9b793f3c36d (diff) | |
download | FreeBSD-src-a782f0b8bd315c02033a4fb363e550bd467101c7.zip FreeBSD-src-a782f0b8bd315c02033a4fb363e550bd467101c7.tar.gz |
Fix usr.bin/ and usr.sbin/ build with a 64-bit ino_t.
Original code by: Gleb Kurtsou
Diffstat (limited to 'usr.sbin/makefs')
-rw-r--r-- | usr.sbin/makefs/ffs/ffs_alloc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/makefs/ffs/ffs_alloc.c b/usr.sbin/makefs/ffs/ffs_alloc.c index f676a39..afab869 100644 --- a/usr.sbin/makefs/ffs/ffs_alloc.c +++ b/usr.sbin/makefs/ffs/ffs_alloc.c @@ -48,6 +48,7 @@ __FBSDID("$FreeBSD$"); #include <sys/time.h> #include <errno.h> +#include <stdint.h> #include "makefs.h" @@ -439,8 +440,8 @@ ffs_blkfree(struct inode *ip, daddr_t bno, long size) } cg = dtog(fs, bno); if (bno >= fs->fs_size) { - warnx("bad block %lld, ino %llu", (long long)bno, - (unsigned long long)ip->i_number); + warnx("bad block %lld, ino %ju", (long long)bno, + (uintmax_t)ip->i_number); return; } error = bread(ip->i_fd, ip->i_fs, fsbtodb(fs, cgtod(fs, cg)), |