static int file_ioctl(void * p1, void * p2, int theIoctl, caddr_t result)
{
- dev_t device = (dev_t) p1;
+ dev_t device = *(dev_t*) p1;
return ((*bdevsw[major(device)].d_ioctl)
(device, theIoctl, result, S_IFBLK, p2));
goto out;
device = va.va_fsid;
- p1 = (void *) device;
+ p1 = &device;
p2 = p;
do_ioctl = &file_ioctl;
}
{
return (vn_rdwr(UIO_WRITE, ref->vp,
addr, len, offset,
- UIO_SYSSPACE32, IO_SYNC|IO_NODELOCKED|IO_UNIT,
+ UIO_SYSSPACE, IO_SYNC|IO_NODELOCKED|IO_UNIT,
vfs_context_ucred(ref->ctx), (int *) 0,
vfs_context_proc(ref->ctx)));
}