diff options
author | Chih-Wei Huang <cwhuang@linux.org.tw> | 2011-07-12 16:35:28 +0800 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-07-12 09:52:32 +0100 |
commit | 8d055890d90c3d92647e3d8b98d32630ef87c2c8 (patch) | |
tree | baba5961b9094851c364d0e5b976143a4db37a55 | |
parent | 6dd804c5a92104042b8be0a67d107946394a0b7a (diff) |
Specify the return type explicitly.
-rw-r--r-- | xf86drmMode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xf86drmMode.c b/xf86drmMode.c index 0d268fce..c94e40ce 100644 --- a/xf86drmMode.c +++ b/xf86drmMode.c @@ -52,7 +52,7 @@ #define U642VOID(x) ((void *)(unsigned long)(x)) #define VOID2U64(x) ((uint64_t)(unsigned long)(x)) -static inline DRM_IOCTL(int fd, int cmd, void *arg) +static inline int DRM_IOCTL(int fd, int cmd, void *arg) { int ret = drmIoctl(fd, cmd, arg); return ret < 0 ? -errno : ret; |