Specify the return type explicitly.
parent
6dd804c5a9
commit
8d055890d9
|
@ -52,7 +52,7 @@
|
||||||
#define U642VOID(x) ((void *)(unsigned long)(x))
|
#define U642VOID(x) ((void *)(unsigned long)(x))
|
||||||
#define VOID2U64(x) ((uint64_t)(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);
|
int ret = drmIoctl(fd, cmd, arg);
|
||||||
return ret < 0 ? -errno : ret;
|
return ret < 0 ? -errno : ret;
|
||||||
|
|
Loading…
Reference in New Issue