mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
backend/drm: fix return value type in create_drm_connector()
../backend/drm/drm.c:1435:24: error: incompatible types when returning type ‘_Bool’ but ‘struct wlr_drm_connector *’ was expected
1435 | return false;
| ^~~~~
This commit is contained in:
parent
a75c6cca54
commit
29cb151987
1 changed files with 1 additions and 1 deletions
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue