summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2008-05-07 21:00:50 +0000
committerjhb <jhb@FreeBSD.org>2008-05-07 21:00:50 +0000
commit1960aee8832e4bb01564e1c0a25fba64d5a74d68 (patch)
treecf4882da2a31b557e79fd125bd973892e441c410 /usr.bin
parentfc9a5d3fa5acdeb7e3100c55ce82eea0ebcff097 (diff)
downloadFreeBSD-src-1960aee8832e4bb01564e1c0a25fba64d5a74d68.zip
FreeBSD-src-1960aee8832e4bb01564e1c0a25fba64d5a74d68.tar.gz
Use a sledgehammer cast (that was in the original patch to boot) to
quiet a warning on 64-bit platforms now that 'size' is an int and not a size_t.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/fstat/zfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/fstat/zfs.c b/usr.bin/fstat/zfs.c
index 375f986..c5508eb 100644
--- a/usr.bin/fstat/zfs.c
+++ b/usr.bin/fstat/zfs.c
@@ -85,7 +85,7 @@ zfs_filestat(struct vnode *vp, struct filestat *fsp)
/* Since we have problems including vnode.h, we'll use the wrappers. */
vnodeptr = getvnodedata(vp);
- if (!KVM_READ(vnodeptr, znodeptr, size)) {
+ if (!KVM_READ(vnodeptr, znodeptr, (size_t)size)) {
dprintf(stderr, "can't read znode at %p for pid %d\n",
(void *)vnodeptr, Pid);
goto bad;
OpenPOWER on IntegriCloud