diff options
author | Tony Crisci <tony@dubstepdish.com> | 2017-11-11 09:58:59 -0500 |
---|---|---|
committer | Tony Crisci <tony@dubstepdish.com> | 2017-11-11 09:59:39 -0500 |
commit | 2a9dc60f28616211370fcd48de8c75ef17282d2e (patch) | |
tree | be639c73a782ecfd680dabc31d3a4e4208cba61f /backend/session | |
parent | 27a3a810ab372ca699bb9da1ce506816432b39f6 (diff) | |
parent | 78ed7f3c8983191b0b6399d4c66f5524a23f216a (diff) |
Merge branch 'master' into feature/multiseat
Diffstat (limited to 'backend/session')
-rw-r--r-- | backend/session/logind.c | 6 | ||||
-rw-r--r-- | backend/session/session.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/backend/session/logind.c b/backend/session/logind.c index 42b48e94..daff75b6 100644 --- a/backend/session/logind.c +++ b/backend/session/logind.c @@ -123,7 +123,7 @@ static bool logind_change_vt(struct wlr_session *base, unsigned vt) { return ret >= 0; } -static bool find_sesion_path(struct logind_session *session) { +static bool find_session_path(struct logind_session *session) { int ret; sd_bus_message *msg = NULL; sd_bus_error error = SD_BUS_ERROR_NULL; @@ -303,7 +303,7 @@ static bool add_signal_matches(struct logind_session *session) { "member='%s'," "path='%s'"; - snprintf(str, sizeof(str), fmt, "Manager", "SesssionRemoved", "/org/freedesktop/login1"); + snprintf(str, sizeof(str), fmt, "Manager", "SessionRemoved", "/org/freedesktop/login1"); ret = sd_bus_add_match(session->bus, NULL, str, session_removed, session); if (ret < 0) { wlr_log(L_ERROR, "Failed to add D-Bus match: %s", strerror(-ret)); @@ -368,7 +368,7 @@ static struct wlr_session *logind_session_create(struct wl_display *disp) { goto error; } - if (!find_sesion_path(session)) { + if (!find_session_path(session)) { sd_bus_unref(session->bus); goto error; } 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); |