diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2018-03-22 12:38:01 +0100 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2018-08-24 16:47:08 +0200 |
commit | 58109c17667483583032bf1b8a3b6991976b68b7 (patch) | |
tree | a911548f3af56de9801135af925779bd85366ce2 /src/login/logind-seat.c | |
parent | 19b0ce632da2520a9fc0bad5f9f2329096a6a8f8 (diff) |
basic/mkdir: convert bool flag to enum
In preparation for subsequent changes...
Diffstat (limited to 'src/login/logind-seat.c')
-rw-r--r-- | src/login/logind-seat.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/login/logind-seat.c b/src/login/logind-seat.c index b109148e6..5cd9126b9 100644 --- a/src/login/logind-seat.c +++ b/src/login/logind-seat.c @@ -95,7 +95,7 @@ int seat_save(Seat *s) { if (!s->started) return 0; - r = mkdir_safe_label("/run/systemd/seats", 0755, 0, 0, false); + r = mkdir_safe_label("/run/systemd/seats", 0755, 0, 0, 0); if (r < 0) goto fail; @@ -566,7 +566,8 @@ void seat_complete_switch(Seat *s) { if (!s->pending_switch) return; - session = TAKE_PTR(s->pending_switch); + session = s->pending_switch; + s->pending_switch = NULL; seat_set_active(s, session); } |