summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xc/programs/Xserver/hw/xfree86/os-support/linux/drm/xf86drm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xc/programs/Xserver/hw/xfree86/os-support/linux/drm/xf86drm.c b/xc/programs/Xserver/hw/xfree86/os-support/linux/drm/xf86drm.c
index 113ec11db..f02201f5a 100644
--- a/xc/programs/Xserver/hw/xfree86/os-support/linux/drm/xf86drm.c
+++ b/xc/programs/Xserver/hw/xfree86/os-support/linux/drm/xf86drm.c
@@ -1113,14 +1113,14 @@ int drmAgpGetNumContexts(int fd)
{
int ret_val;
- ret_val = ioctl(fd, DRM_IOCTL_AGP_NUM_CTX);
+ ret_val = ioctl(fd, DRM_IOCTL_AGP_NUM_CTX, NULL);
if(ret_val == -1) return -errno;
return ret_val;
}
int drmAgpChangeContext(int fd, int context)
{
- if(ioctl(fd, DRM_IOCTL_AGP_CHG_CTX, context)) return -errno;
+ if(ioctl(fd, DRM_IOCTL_AGP_CHG_CTX, (void *)context)) return -errno;
return 0;
}