Specify the return type explicitly.

main
Chih-Wei Huang 2011-07-12 16:35:28 +08:00 committed by Chris Wilson
parent 6dd804c5a9
commit 8d055890d9
1 changed files with 1 additions and 1 deletions

View File

@ -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;