aboutsummaryrefslogtreecommitdiff
path: root/libseat/libseat.c
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-08-14 09:03:23 +0000
committerKenny Levinsen <kl@kl.wtf>2021-08-15 13:33:30 +0200
commit166feaea3394e00af14418e074ae090e31922f33 (patch)
tree64a32fb03bd591d44e5d29816b451e72a6700a95 /libseat/libseat.c
parent309650aa4d4be1310b20e7293a3bc0c47aeecf0e (diff)
Make libseat_seat_listener const
libseat will never write to that struct. Let's allow callers to make it read-only.
Diffstat (limited to 'libseat/libseat.c')
-rw-r--r--libseat/libseat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libseat/libseat.c b/libseat/libseat.c
index 42449a8..8cc9ab2 100644
--- a/libseat/libseat.c
+++ b/libseat/libseat.c
@@ -34,7 +34,7 @@ static const struct named_backend impls[] = {
#error At least one backend must be enabled
#endif
-struct libseat *libseat_open_seat(struct libseat_seat_listener *listener, void *data) {
+struct libseat *libseat_open_seat(const struct libseat_seat_listener *listener, void *data) {
if (listener == NULL || listener->enable_seat == NULL || listener->disable_seat == NULL) {
errno = EINVAL;
return NULL;