aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/fstat
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2008-05-07 18:27:38 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2008-05-07 18:27:38 +0000
commit5e72af30cba578a138e11cd1770684397ba5fcbe (patch)
tree2839bf41cce8dbe8c86e32a77dde4e42d0e41c4c /usr.bin/fstat
parent922791261762e71711d666e572aa996b839b4366 (diff)
downloadsrc-5e72af30cba578a138e11cd1770684397ba5fcbe.tar.gz
src-5e72af30cba578a138e11cd1770684397ba5fcbe.zip
Notes
Diffstat (limited to 'usr.bin/fstat')
-rw-r--r--usr.bin/fstat/zfs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/fstat/zfs.c b/usr.bin/fstat/zfs.c
index 123fdc23b9e7..375f986b3607 100644
--- a/usr.bin/fstat/zfs.c
+++ b/usr.bin/fstat/zfs.c
@@ -68,7 +68,7 @@ zfs_filestat(struct vnode *vp, struct filestat *fsp)
uint64_t *zid;
void *znodeptr, *vnodeptr;
char *dataptr;
- int *zphys_addr;
+ void *zphys_addr;
size_t len;
int size;
@@ -100,9 +100,9 @@ zfs_filestat(struct vnode *vp, struct filestat *fsp)
*/
dataptr = znodeptr;
zid = (uint64_t *)(dataptr + LOCATION_ZID);
- zphys_addr = (int *)(dataptr + LOCATION_ZPHYS(size));
+ zphys_addr = *(void **)(dataptr + LOCATION_ZPHYS(size));
- if (!KVM_READ(*zphys_addr, &zphys, sizeof(zphys))) {
+ if (!KVM_READ(zphys_addr, &zphys, sizeof(zphys))) {
dprintf(stderr, "can't read znode_phys at %p for pid %d\n",
zphys_addr, Pid);
goto bad;