aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2023-06-22 13:55:45 +0200
committerSimon Ser <contact@emersion.fr>2023-06-22 13:55:45 +0200
commit6dd8b092e9d6a18a855aa824fab7e4f287a91726 (patch)
tree265cb3e026df1b68ef0713720431e57b60cf1cb0
parentb5eaa4704947d3793150079c5add3132998cbe4b (diff)
output/swapchain: fix error return value types
This function returns a bool, not a pointer.
-rw-r--r--types/output/swapchain.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/types/output/swapchain.c b/types/output/swapchain.c
index 64577428..0b0c6a8b 100644
--- a/types/output/swapchain.c
+++ b/types/output/swapchain.c
@@ -101,13 +101,13 @@ bool wlr_output_configure_primary_swapchain(struct wlr_output *output,
if (swapchain == NULL) {
wlr_log(WLR_ERROR, "Failed to create modifier-less swapchain for output '%s'",
output->name);
- return NULL;
+ return false;
}
wlr_log(WLR_DEBUG, "Testing modifier-less swapchain for output '%s'", output->name);
if (!test_swapchain(output, swapchain, state)) {
wlr_log(WLR_ERROR, "Swapchain for output '%s' failed test", output->name);
wlr_swapchain_destroy(swapchain);
- return NULL;
+ return false;
}
}