ioctlsort: sync with ioctl_lookup()
* linux/ioctlsort.c (main): Use NR and TYPE bits only, to sync with ioctl_lookup() which looks at these bits only.
This commit is contained in:
parent
a6ca968003
commit
609b58ca49
@ -35,10 +35,10 @@ int compare(const void* a, const void* b) {
|
||||
int main(int argc, char** argv) {
|
||||
int i;
|
||||
|
||||
#if defined(POWERPC) || defined(__powerpc__) /* unspeakable kludge */
|
||||
/* ioctl_lookup() only looks at the NR and TYPE bits atm. */
|
||||
for (i = 0; i < nioctls; i++)
|
||||
ioctls[i].code &= ~_IOC_DIRMASK;
|
||||
#endif
|
||||
ioctls[i].code &= (_IOC_NRMASK << _IOC_NRSHIFT) |
|
||||
(_IOC_TYPEMASK << _IOC_TYPESHIFT);
|
||||
|
||||
qsort(ioctls, nioctls, sizeof(ioctls[0]), compare);
|
||||
puts ("\t/* Generated by ioctlsort */");
|
||||
|
Loading…
x
Reference in New Issue
Block a user