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.
This commit is contained in:
John-Mark Gurney
2003-06-19 02:09:22 +00:00
parent f873ed0327
commit cf56713abf
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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 @@ socktrans(sock, i)
*/
udev_t
dev2udev(dev)
dev_t dev;
struct cdev *dev;
{
struct cdev si;
+1 -1
View File
@@ -64,7 +64,7 @@ extern kvm_t *kd;
extern int vflg;
extern int Pid;
udev_t dev2udev(dev_t dev);
udev_t dev2udev(struct cdev *dev);
/* Additional filesystem types */
int isofs_filestat(struct vnode *vp, struct filestat *fsp);