From 6dd8b092e9d6a18a855aa824fab7e4f287a91726 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 22 Jun 2023 13:55:45 +0200 Subject: output/swapchain: fix error return value types This function returns a bool, not a pointer. --- types/output/swapchain.c | 4 ++-- 1 file 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; } } -- cgit v1.2.3