diff options
author | Matthew D Fleming <mdf@FreeBSD.org> | 2012-09-27 23:31:19 +0000 |
---|---|---|
committer | Matthew D Fleming <mdf@FreeBSD.org> | 2012-09-27 23:31:19 +0000 |
commit | b424efd5b11685876e5e8bb564068cee4a2bff4b (patch) | |
tree | 8a4bdcc7b13b351076583f8136d9f3cd310718b6 /usr.sbin/snapinfo/snapinfo.c | |
parent | 6db1a7f11e0f890229ef43a9e554b89756afa8c5 (diff) | |
download | src-b424efd5b11685876e5e8bb564068cee4a2bff4b.tar.gz src-b424efd5b11685876e5e8bb564068cee4a2bff4b.zip |
Fix usr.bin/ and usr.sbin/ build with a 64-bit ino_t.
Original code by: Gleb Kurtsou
Notes
Notes:
svn path=/head/; revision=241015
Diffstat (limited to 'usr.sbin/snapinfo/snapinfo.c')
-rw-r--r-- | usr.sbin/snapinfo/snapinfo.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/snapinfo/snapinfo.c b/usr.sbin/snapinfo/snapinfo.c index 45882e094e76..23c3b4b2fe8e 100644 --- a/usr.sbin/snapinfo/snapinfo.c +++ b/usr.sbin/snapinfo/snapinfo.c @@ -34,6 +34,7 @@ #include <errno.h> #include <ftw.h> #include <libufs.h> +#include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -149,7 +150,7 @@ compare_function(const char *path, const struct stat *st, int flags, printf("\tsnapshot "); printf("%s", path); if (verbose) - printf(" (inode %d)", st->st_ino); + printf(" (inode %ju)", (uintmax_t)st->st_ino); printf("\n"); if (!cont_search) return (EEXIST); |