aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChih-Wei Huang2011-07-12 03:35:28 -0500
committerChris Wilson2011-07-12 03:52:32 -0500
commit8d055890d90c3d92647e3d8b98d32630ef87c2c8 (patch)
treebaba5961b9094851c364d0e5b976143a4db37a55 /xf86drmMode.c
parent6dd804c5a92104042b8be0a67d107946394a0b7a (diff)
downloadexternal-libgbm-8d055890d90c3d92647e3d8b98d32630ef87c2c8.tar.gz
external-libgbm-8d055890d90c3d92647e3d8b98d32630ef87c2c8.tar.xz
external-libgbm-8d055890d90c3d92647e3d8b98d32630ef87c2c8.zip
Specify the return type explicitly.
Diffstat (limited to 'xf86drmMode.c')
-rw-r--r--xf86drmMode.c2
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 @@
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 DRM_IOCTL(int fd, int cmd, void *arg) 55static inline int DRM_IOCTL(int fd, int 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;