diff options
| author | Andriy Gapon <avg@FreeBSD.org> | 2009-08-20 11:04:31 +0000 |
|---|---|---|
| committer | Andriy Gapon <avg@FreeBSD.org> | 2009-08-20 11:04:31 +0000 |
| commit | 2c68e2fb1e2cb7386b8863b4049198be949161e1 (patch) | |
| tree | 7240b795e780eee38499d59d47bd7ed0ca351d87 | |
| parent | 566abe95b20b89720df2783aa009973d6465bf7a (diff) | |
Notes
| -rw-r--r-- | usr.bin/fstat/fstat.c | 2 | ||||
| -rw-r--r-- | usr.bin/fstat/zfs.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/fstat/fstat.c b/usr.bin/fstat/fstat.c index 53561e88e033..f82e964395b2 100644 --- a/usr.bin/fstat/fstat.c +++ b/usr.bin/fstat/fstat.c @@ -658,7 +658,7 @@ devfs_filestat(struct vnode *vp, struct filestat *fsp) (void *)devfs_dirent.de_vnode, Pid); return 0; } - fsp->fsid = (long)mount.mnt_stat.f_fsid.val[0]; + fsp->fsid = (long)(uint32_t)mount.mnt_stat.f_fsid.val[0]; fsp->fileid = devfs_dirent.de_inode; fsp->mode = (devfs_dirent.de_mode & ~S_IFMT) | S_IFCHR; fsp->size = 0; diff --git a/usr.bin/fstat/zfs.c b/usr.bin/fstat/zfs.c index 008f1746b0ba..96cdff6870a0 100644 --- a/usr.bin/fstat/zfs.c +++ b/usr.bin/fstat/zfs.c @@ -117,7 +117,7 @@ zfs_filestat(struct vnode *vp, struct filestat *fsp) goto bad; } - fsp->fsid = (long)mount.mnt_stat.f_fsid.val[0]; + fsp->fsid = (long)(uint32_t)mount.mnt_stat.f_fsid.val[0]; fsp->fileid = *zid; /* * XXX: Shows up wrong in output, but UFS has this error too. Could |
