diff options
author | jmg <jmg@FreeBSD.org> | 2003-06-19 02:09:22 +0000 |
---|---|---|
committer | jmg <jmg@FreeBSD.org> | 2003-06-19 02:09:22 +0000 |
commit | 092e1e40c6bdddedc02ea9b22352c9c975a9c7b6 (patch) | |
tree | c257ed39e5e379ece17ff7a9f8e0fc192e8caef6 /usr.bin/fstat/fstat.c | |
parent | f3d52988e2e807349945dad818ba3d84a63b1b2f (diff) | |
download | FreeBSD-src-092e1e40c6bdddedc02ea9b22352c9c975a9c7b6.zip FreeBSD-src-092e1e40c6bdddedc02ea9b22352c9c975a9c7b6.tar.gz |
correct spelling of struct cdev * from dev_t which is a 32bit type and
isn't very useful for passing pointers on LP64 systems.
device names on sparc64 and alpha should now work.
Diffstat (limited to 'usr.bin/fstat/fstat.c')
-rw-r--r-- | usr.bin/fstat/fstat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/fstat/fstat.c b/usr.bin/fstat/fstat.c index cb002ee..94bd652 100644 --- a/usr.bin/fstat/fstat.c +++ b/usr.bin/fstat/fstat.c @@ -629,7 +629,7 @@ devfs_filestat(vp, fsp) fsp->fileid = devfs_dirent.de_inode; fsp->mode = (devfs_dirent.de_mode & ~S_IFMT) | S_IFCHR; fsp->size = 0; - fsp->rdev = dev2udev((dev_t)vnode.v_rdev); + fsp->rdev = dev2udev(vnode.v_rdev); return 1; } @@ -875,7 +875,7 @@ bad: */ udev_t dev2udev(dev) - dev_t dev; + struct cdev *dev; { struct cdev si; |