aboutsummaryrefslogtreecommitdiff
path: root/backend/headless
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2020-12-28 10:52:40 +0100
committerSimon Ser <contact@emersion.fr>2021-01-04 19:46:44 +0100
commite8d56ca415f6214681daa65c0da505cd2d0bdc75 (patch)
treeaf24c6652a7b2e289a9ea6313fbc2871c5ddf9d9 /backend/headless
parent7febdc73345f9759a766ee3c7b17d7195192bd38 (diff)
backend/session: allow wlr_session_find_gpus to return an error
Sometimes wlr_session_find_gpus will encounter an error. This is different from finding zero GPUs. On error, wlr_session_find_gpus already returns -1. However, this is casted to size_t, so callers uncorrectly assume this is a success. Instead, make wlr_session_find_gpus return a ssize_t and allow callers to handle the error accordingly.
Diffstat (limited to 'backend/headless')
0 files changed, 0 insertions, 0 deletions