Fix bool return types

This makes wlroots build in C23 mode.

C23 is more strict and rejects implicit conversions from bool to a
pointer.
This commit is contained in:
Simon Ser 2024-01-04 22:24:06 +01:00
parent 2f2a55ebd3
commit a0b1329ee6
4 changed files with 7 additions and 7 deletions

View file

@ -52,12 +52,12 @@ static struct wlr_buffer *output_acquire_empty_buffer(struct wlr_output *output,
// wlr_output_test_state(), which will prevent us from being called.
if (!wlr_output_configure_primary_swapchain(output, state,
&output->swapchain)) {
return false;
return NULL;
}
struct wlr_buffer *buffer = wlr_swapchain_acquire(output->swapchain, NULL);
if (buffer == NULL) {
return false;
return NULL;
}
struct wlr_render_pass *pass =