diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2017-02-05 05:46:43 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2017-02-05 05:46:43 +0000 |
commit | cccbdc86e8b5743d6bd19362e9776b885b9a8d96 (patch) | |
tree | df741133c971cfc0a2b1ef64bb5755de100a71fe /lib/libdrm/xf86drmMode.c | |
parent | 9a4ec9fa15e57e83d71be4f05833e68b58523a43 (diff) |
Merge libdrm 2.4.75
Diffstat (limited to 'lib/libdrm/xf86drmMode.c')
-rw-r--r-- | lib/libdrm/xf86drmMode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libdrm/xf86drmMode.c b/lib/libdrm/xf86drmMode.c index fb22f6837..0266bc109 100644 --- a/lib/libdrm/xf86drmMode.c +++ b/lib/libdrm/xf86drmMode.c @@ -901,7 +901,7 @@ int drmHandleEvent(int fd, drmEventContextPtr evctx) i = 0; while (i < len) { - e = (struct drm_event *) &buffer[i]; + e = (struct drm_event *)(buffer + i); switch (e->type) { case DRM_EVENT_VBLANK: if (evctx->version < 1 || |