summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Hartmann <jhartmann@valinux.com>2003-01-13 19:08:42 +0000
committerJeff Hartmann <jhartmann@valinux.com>2003-01-13 19:08:42 +0000
commit6e1d5d047e984ff1ec8d860f510ad276fe4af2c5 (patch)
tree8e759c5a353827bdd990a19857553e5e5b4c33d5
parent1f4d31c38d7dd40727323a47606730981b344c6a (diff)
Small server side build fix for xf86drm.cagpgart_2_0_branch
-rw-r--r--libdrm/xf86drm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libdrm/xf86drm.c b/libdrm/xf86drm.c
index 113ec11d..f02201f5 100644
--- a/libdrm/xf86drm.c
+++ b/libdrm/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;
}