From 29cb151987d4f17ae0cb304d1b7c2e835bf9372b Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Fri, 10 May 2024 09:37:12 +0200 Subject: [PATCH] backend/drm: fix return value type in create_drm_connector() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ../backend/drm/drm.c:1435:24: error: incompatible types when returning type ‘_Bool’ but ‘struct wlr_drm_connector *’ was expected 1435 | return false; | ^~~~~ --- backend/drm/drm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/drm/drm.c b/backend/drm/drm.c index aaf5c4873..7489d78fd 100644 --- a/backend/drm/drm.c +++ b/backend/drm/drm.c @@ -1408,7 +1408,7 @@ static struct wlr_drm_connector *create_drm_connector(struct wlr_drm_backend *dr if (!get_drm_connector_props(drm->fd, wlr_conn->id, &wlr_conn->props)) { free(wlr_conn); - return false; + return NULL; } const char *conn_name =