aboutsummaryrefslogtreecommitdiff
path: root/libdrm/xf86drmMode.c
diff options
context:
space:
mode:
authorAlan Hourihane <alanh@tungstengraphics.com>2007-11-05 10:00:43 +0000
committerAlan Hourihane <alanh@tungstengraphics.com>2007-11-05 10:00:43 +0000
commit0bee83a8c8bca817459a0ee9caa6e13f3f1aa281 (patch)
tree84d1042d80b1bd567f8f3e3876e5f84d00a10145 /libdrm/xf86drmMode.c
parent5e86f67a34c50ec49e1d7b3b834d1695ebf5d4c8 (diff)
Pass pointer to drmModeRmMode.
Diffstat (limited to 'libdrm/xf86drmMode.c')
-rw-r--r--libdrm/xf86drmMode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdrm/xf86drmMode.c b/libdrm/xf86drmMode.c
index cfe133fe..e7ac58ba 100644
--- a/libdrm/xf86drmMode.c
+++ b/libdrm/xf86drmMode.c
@@ -368,7 +368,7 @@ uint32_t drmModeAddMode(int fd, struct drm_mode_modeinfo *mode_info)
int drmModeRmMode(int fd, uint32_t mode_id)
{
- return ioctl(fd, DRM_IOCTL_MODE_RMMODE, mode_id);
+ return ioctl(fd, DRM_IOCTL_MODE_RMMODE, &mode_id);
}
int drmModeAttachMode(int fd, uint32_t output_id, uint32_t mode_id)