aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--xf86drmMode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xf86drmMode.c b/xf86drmMode.c
index c94e40ce..f08e6480 100644
--- a/xf86drmMode.c
+++ b/xf86drmMode.c
@@ -52,7 +52,7 @@
52#define U642VOID(x) ((void *)(unsigned long)(x)) 52#define U642VOID(x) ((void *)(unsigned long)(x))
53#define VOID2U64(x) ((uint64_t)(unsigned long)(x)) 53#define VOID2U64(x) ((uint64_t)(unsigned long)(x))
54 54
55static inline int DRM_IOCTL(int fd, int cmd, void *arg) 55static inline int DRM_IOCTL(int fd, unsigned long cmd, void *arg)
56{ 56{
57 int ret = drmIoctl(fd, cmd, arg); 57 int ret = drmIoctl(fd, cmd, arg);
58 return ret < 0 ? -errno : ret; 58 return ret < 0 ? -errno : ret;