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.
This commit is contained in:
parent
06d0d0e274
commit
0f0e3d5f39
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user