logind: simplify session_activate() a bit

This commit is contained in:
Lennart Poettering 2012-01-17 14:02:47 +01:00
parent abc5bbc6f0
commit 129eebe020
2 changed files with 3 additions and 5 deletions

View File

@ -324,7 +324,6 @@ finish:
int session_activate(Session *s) {
int r;
Session *old_active;
assert(s);
@ -343,10 +342,7 @@ int session_activate(Session *s) {
if (r < 0)
return r;
old_active = s->seat->active;
s->seat->active = s;
return seat_apply_acls(s->seat, old_active);
return seat_set_active(s->seat, s);
}
static int session_link_x11_socket(Session *s) {

View File

@ -299,6 +299,8 @@ static int user_create_cgroup(User *u) {
static int user_start_service(User *u) {
assert(u);
/* FIXME: Fill me in later ... */
return 0;
}