remember to shift ioctl masks as well
This commit is contained in:
parent
b50c907458
commit
1c595a437d
2
ioctl.c
2
ioctl.c
@ -86,7 +86,7 @@ long code;
|
||||
|
||||
ioent.code = code;
|
||||
#ifdef LINUX
|
||||
ioent.code &= (_IOC_NRMASK|_IOC_TYPEMASK);
|
||||
ioent.code &= (_IOC_NRMASK<<_IOC_NRSHIFT) | (_IOC_TYPEMASK<<_IOC_TYPESHIFT);
|
||||
#endif
|
||||
iop = (struct ioctlent *) bsearch((char *) &ioent, (char *) ioctlent,
|
||||
nioctlents, sizeof(struct ioctlent), compare);
|
||||
|
Loading…
Reference in New Issue
Block a user