diff options
Diffstat (limited to 'libdrm/xf86drm.c')
-rw-r--r-- | libdrm/xf86drm.c | 4 |
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; } |