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:
@@ -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;
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user