From 1960aee8832e4bb01564e1c0a25fba64d5a74d68 Mon Sep 17 00:00:00 2001 From: jhb Date: Wed, 7 May 2008 21:00:50 +0000 Subject: 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. --- usr.bin/fstat/zfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.bin') 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; -- cgit v1.1