mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
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:
parent
2f2a55ebd3
commit
a0b1329ee6
4 changed files with 7 additions and 7 deletions
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue