diff options
-rw-r--r-- | libseat/backend/logind.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libseat/backend/logind.c b/libseat/backend/logind.c index 53b8d08..cba928a 100644 --- a/libseat/backend/logind.c +++ b/libseat/backend/logind.c @@ -146,7 +146,7 @@ static int close_device(struct libseat *base, int device_id) { static int switch_session(struct libseat *base, int s) { struct backend_logind *session = backend_logind_from_libseat_backend(base); - if (s >= UINT16_MAX || s < 0) { + if (s < 0) { errno = EINVAL; return -1; } |