drm mode: fix drmIoctl wrapper
authorMarcin Slusarz <marcin.slusarz@gmail.com>
Sun, 5 Jun 2011 16:53:16 +0000 (18:53 +0200)
committerMarcin Slusarz <marcin.slusarz@gmail.com>
Sun, 18 Sep 2011 13:25:18 +0000 (15:25 +0200)
commit763b618d55a973807823bb1a1c6e60b9e2db6d8b
tree16136d83696d9b1b6651f7d77ccb1fc6fc80dec1
parent2acaf160df584a5ef7b5c5b84819389948cd97ad
drm mode: fix drmIoctl wrapper

Both drmIoctl and ioctl define second argument as unigned long.

Debugging/tracing tools (like strace or valgrind) on 64-bit machines see
different request value for ioctls with 32nd bit set, because casting
signed int to unsigned long extends 32nd bit to upper word, so 0x80000000
becomes 0xFFFFFFFF80000000)

Nobody noticed because higher 32 bits are chopped off on their way to kernel.
xf86drmMode.c