remember to shift ioctl masks as well

This commit is contained in:
Wichert Akkerman 2001-08-03 21:51:35 +00:00
parent b50c907458
commit 1c595a437d

View File

@ -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);