egl: fix build fallouts from 1d0be5b3fe5
authorKrzysztof Sobiecki <sobkas@gmail.com>
Tue, 19 Sep 2017 20:20:48 +0000 (21:20 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 19 Sep 2017 20:27:01 +0000 (21:27 +0100)
Fixes: 1d0be5b3fe5 ("wayland-drm: constify the callbacks struct")
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/egl/drivers/dri2/egl_dri2.c
src/egl/wayland/wayland-drm/wayland-drm.h

index f109400bfab6e70cff0d95170eb283e2424983ec..0dce2246c1592772d78412184de56859dfd48419 100644 (file)
@@ -2724,7 +2724,7 @@ dri2_bind_wayland_display_wl(_EGLDriver *drv, _EGLDisplay *disp,
 {
    struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp);
    const struct wayland_drm_callbacks wl_drm_callbacks = {
-      .authenticate = (int(*)(void *, uint32_t)) dri2_dpy->vtbl->authenticate;
+      .authenticate = (int(*)(void *, uint32_t)) dri2_dpy->vtbl->authenticate,
       .reference_buffer = dri2_wl_reference_buffer,
       .release_buffer = dri2_wl_release_buffer
    };
index 77e8d27304245ad1ae2c71fb651f892e08554f0e..111383ff1d687419e47fd660590873cb0b42ac29 100644 (file)
@@ -34,7 +34,7 @@ wayland_drm_buffer_get(struct wl_drm *drm, struct wl_resource *resource);
 
 struct wl_drm *
 wayland_drm_init(struct wl_display *display, char *device_name,
-                struct wayland_drm_callbacks *callbacks, void *user_data,
+                const struct wayland_drm_callbacks *callbacks, void *user_data,
                  uint32_t flags);
 
 void