diff options
author | Simon Ser <contact@emersion.fr> | 2024-01-04 22:24:06 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2024-01-04 22:24:06 +0100 |
commit | a0b1329ee6cce22aca0c9b064fe9c136cc05d630 (patch) | |
tree | 31aefab2c803d29e4e3c2da09d20dde4812f3104 /backend | |
parent | 2f2a55ebd3c5a950f1bf8c280edf0838721363da (diff) |
Fix bool return types
This makes wlroots build in C23 mode.
C23 is more strict and rejects implicit conversions from bool to a
pointer.
Diffstat (limited to 'backend')
-rw-r--r-- | backend/x11/backend.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/x11/backend.c b/backend/x11/backend.c index fcaab618..5c5aa7e8 100644 --- a/backend/x11/backend.c +++ b/backend/x11/backend.c @@ -600,7 +600,7 @@ struct wlr_backend *wlr_x11_backend_create(struct wl_display *display, if (!query_formats(x11)) { wlr_log(WLR_ERROR, "Failed to query supported DRM formats"); - return false; + goto error_event; } x11->drm_fd = -1; @@ -637,7 +637,7 @@ struct wlr_backend *wlr_x11_backend_create(struct wl_display *display, #if HAVE_XCB_ERRORS if (xcb_errors_context_new(x11->xcb, &x11->errors_context) != 0) { wlr_log(WLR_ERROR, "Failed to create error context"); - return false; + goto error_event; } #endif |