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;
|
ioent.code = code;
|
||||||
#ifdef LINUX
|
#ifdef LINUX
|
||||||
ioent.code &= (_IOC_NRMASK|_IOC_TYPEMASK);
|
ioent.code &= (_IOC_NRMASK<<_IOC_NRSHIFT) | (_IOC_TYPEMASK<<_IOC_TYPESHIFT);
|
||||||
#endif
|
#endif
|
||||||
iop = (struct ioctlent *) bsearch((char *) &ioent, (char *) ioctlent,
|
iop = (struct ioctlent *) bsearch((char *) &ioent, (char *) ioctlent,
|
||||||
nioctlents, sizeof(struct ioctlent), compare);
|
nioctlents, sizeof(struct ioctlent), compare);
|
||||||
|
Loading…
Reference in New Issue
Block a user