aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/fstat
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2008-05-07 21:00:50 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2008-05-07 21:00:50 +0000
commit0f0e3d5f393e22792a2ee10907af89f40c96cf64 (patch)
treecf4882da2a31b557e79fd125bd973892e441c410 /usr.bin/fstat
parent06d0d0e274ace4e5772a80d182df05b52dec3426 (diff)
Notes
Diffstat (limited to 'usr.bin/fstat')
-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 375f986b3607..c5508eb96c2b 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;