aboutsummaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authorEric Molitor <eric@molitor.org>2017-11-10 15:12:00 +0000
committerEric Molitor <eric@molitor.org>2017-11-10 15:12:00 +0000
commit5be11a5c95457c6d4f6cd9720162f962286c2258 (patch)
treeb4c85f381cee6db15c9defc313da4d2c6109b3b4 /backend
parentb5ad7a5232b919319eef1a198d731b308c0bb9cc (diff)
Remove VLA from session.h
VLAs are optional C11 features and not supported by C++.
Diffstat (limited to 'backend')
-rw-r--r--backend/session/session.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/session/session.c b/backend/session/session.c
index b14ca4d0..760830c3 100644
--- a/backend/session/session.c
+++ b/backend/session/session.c
@@ -257,7 +257,7 @@ static size_t explicit_find_gpus(struct wlr_session *session,
* If it's not found, it returns the first valid GPU it finds.
*/
size_t wlr_session_find_gpus(struct wlr_session *session,
- size_t ret_len, int ret[static ret_len]) {
+ size_t ret_len, int *ret) {
const char *explicit = getenv("WLR_DRM_DEVICES");
if (explicit) {
return explicit_find_gpus(session, ret_len, ret, explicit);