summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Hourihane <alanh@tungstengraphics.com>2007-11-05 10:00:11 +0000
committerAlan Hourihane <alanh@tungstengraphics.com>2007-11-05 10:00:11 +0000
commit5e86f67a34c50ec49e1d7b3b834d1695ebf5d4c8 (patch)
tree96c6363a293c848a920c2e97b17809a8ab206eee
parent9906c7e54bdb9fa172155eaa57b7e6c47ab01c58 (diff)
pass pointer for drmModeRmFB
-rw-r--r--libdrm/xf86drmMode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdrm/xf86drmMode.c b/libdrm/xf86drmMode.c
index a7241ffd..cfe133fe 100644
--- a/libdrm/xf86drmMode.c
+++ b/libdrm/xf86drmMode.c
@@ -212,7 +212,7 @@ int drmModeAddFB(int fd, uint32_t width, uint32_t height, uint8_t depth,
int drmModeRmFB(int fd, uint32_t bufferId)
{
- return ioctl(fd, DRM_IOCTL_MODE_RMFB, bufferId);
+ return ioctl(fd, DRM_IOCTL_MODE_RMFB, &bufferId);
}
drmModeFBPtr drmModeGetFB(int fd, uint32_t buf)