aboutsummaryrefslogtreecommitdiff
path: root/backend/session
diff options
context:
space:
mode:
authorManuel Stoeckl <code@mstoeckl.com>2021-02-04 08:57:18 -0500
committerSimon Ser <contact@emersion.fr>2021-02-05 10:04:20 +0100
commita290d7a78dc36275e24e54f84570f37a66dc67a4 (patch)
tree87092b45033957545192fa80288d1a4be3bf69c1 /backend/session
parentb6dea80907b840ed30f056b618ee20492870f664 (diff)
Make implementation function lists static const
This requires a change to the type of `struct wlr_tablet` and `wlr_tablet_init` signature, both of which are part of the unstable API.
Diffstat (limited to 'backend/session')
-rw-r--r--backend/session/session.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/session/session.c b/backend/session/session.c
index 1c6321a5..a076543a 100644
--- a/backend/session/session.c
+++ b/backend/session/session.c
@@ -25,7 +25,7 @@ extern const struct session_impl session_logind;
extern const struct session_impl session_direct;
extern const struct session_impl session_noop;
-static const struct session_impl *impls[] = {
+static const struct session_impl *const impls[] = {
#if WLR_HAS_LIBSEAT
&session_libseat,
#endif
@@ -137,7 +137,7 @@ struct wlr_session *wlr_session_create(struct wl_display *disp) {
env_wlr_session);
}
} else {
- const struct session_impl **iter;
+ const struct session_impl *const *iter;
for (iter = impls; !session && *iter; ++iter) {
session = (*iter)->create(disp);
}