summaryrefslogtreecommitdiff
path: root/xf86drm.c
diff options
context:
space:
mode:
authorEric Engestrom <eric.engestrom@intel.com>2019-02-08 14:46:07 +0000
committerEric Engestrom <eric.engestrom@intel.com>2019-02-08 18:52:36 +0000
commiteba6609b7bee5a56fa5334992b1e6f3aef8d244a (patch)
tree40cf78b17123143735ca3c0595555c1b752be141 /xf86drm.c
parent17dfe3ac93217b43f93bc81d1129bd38a89d0368 (diff)
downloaddrm-eba6609b7bee5a56fa5334992b1e6f3aef8d244a.tar.gz
xf86drm: fix return type for drmIsMaster()
Xserver has struct members named `bool`, which means the last commit breaks its build with errors like this: error: two or more data types in declaration specifiers Bool bool; ^ Fix this by making it return a 0/1 integer, with the same semantic as the boolean it was before. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=109587 Fixes: 17dfe3ac93217b43f93b "xf86drm: Add drmIsMaster()" Cc: Christopher James Halse Rogers <christopher.halse.rogers@canonical.com> Signed-off-by: Eric Engestrom <eric.engestrom@intel.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Diffstat (limited to 'xf86drm.c')
-rw-r--r--xf86drm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xf86drm.c b/xf86drm.c
index ac7af0d6..d006bb38 100644
--- a/xf86drm.c
+++ b/xf86drm.c
@@ -2743,7 +2743,7 @@ drm_public int drmDropMaster(int fd)
return drmIoctl(fd, DRM_IOCTL_DROP_MASTER, NULL);
}
-drm_public bool drmIsMaster(int fd)
+drm_public int drmIsMaster(int fd)
{
/* Detect master by attempting something that requires master.
*