~kennylevinsen/seatd

1dbf1002055627f473ac891d1ea309f1f3ddc2c3 — Kenny Levinsen 2 months ago 0d5f48f
logind: switch_session should return 0 on success

It currently returned -1 on failure and 1 on success. The API is
intended to return -1 on failure and 0 on success, so fix that.
1 files changed, 1 insertions(+), 1 deletions(-)

M libseat/backend/logind.c
M libseat/backend/logind.c => libseat/backend/logind.c +1 -1
@@ 172,7 172,7 @@ static int switch_session(struct libseat *base, int s) {

	sd_bus_error_free(&error);
	sd_bus_message_unref(msg);
	return ret >= 0;
	return ret < 0 ? -1 : 0;
}

static int disable_seat(struct libseat *base) {