Module: Mesa Branch: main Commit: d9fd4d7c0dea0c0e02d6d2e8dc01bf77374cac2a URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d9fd4d7c0dea0c0e02d6d2e8dc01bf77374cac2a
Author: Michael Tretter <m.tret...@pengutronix.de> Date: Fri Jan 5 12:41:34 2024 +0100 egl/wayland: fix formatting and add trailing comma Commit 659bace01a5e ("egl: add a few trailing commas") added a few trailing commas to the last item in a struct to avoid that commit e85983d7726f ("egl: re-format using clang-format") moves the closing brace into the previous line. The wl_callback_listener was missing the comma and the brace was moved to the previous line, which makes it harder to read the code. Add the comma and fix the formatting. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26902> --- src/egl/drivers/dri2/platform_wayland.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/egl/drivers/dri2/platform_wayland.c b/src/egl/drivers/dri2/platform_wayland.c index 7e85dd682a4..ec33aeebbab 100644 --- a/src/egl/drivers/dri2/platform_wayland.c +++ b/src/egl/drivers/dri2/platform_wayland.c @@ -1375,7 +1375,8 @@ wayland_throttle_callback(void *data, struct wl_callback *callback, } static const struct wl_callback_listener throttle_listener = { - .done = wayland_throttle_callback}; + .done = wayland_throttle_callback, +}; static EGLBoolean get_fourcc(struct dri2_egl_display *dri2_dpy, __DRIimage *image, int *fourcc)