From 4051edee96d0a7e0a5becd1df2b2a35d033db698 Mon Sep 17 00:00:00 2001 From: jhartmann Date: Mon, 13 Jan 2003 19:08:42 +0000 Subject: Small server side build fix for xf86drm.c --- xc/programs/Xserver/hw/xfree86/os-support/linux/drm/xf86drm.c | 4 ++-- 1 file 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; } -- cgit v1.2.3