libseat: Fix build of builtin backend

This was regressed by 166feaea33 which
missed the builtin backend when changing struct libseat_seat_listener to
being passed around as const.
This commit is contained in:
Kenny Levinsen 2021-08-15 14:31:50 +02:00
parent d78859bc9a
commit 038c30f9b1

View file

@ -599,7 +599,7 @@ static int set_deathsig(int signal) {
#error Unsupported platform
#endif
static struct libseat *builtin_open_seat(struct libseat_seat_listener *listener, void *data) {
static struct libseat *builtin_open_seat(const struct libseat_seat_listener *listener, void *data) {
int fds[2];
if (socketpair(AF_UNIX, SOCK_STREAM, 0, fds) == -1) {
log_errorf("Could not create socket pair: %s", strerror(errno));