diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-08-06 16:48:17 +0300 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-08-06 16:54:00 +0300 |
commit | 491ac9f2c4aeda8c40edde35112404b737e38b60 (patch) | |
tree | 55a5dded7bd23a9e079a92de97c3c7628494b3a3 /src/login/logind.c | |
parent | 65d73cf042ba7de11d254f5c4714f467db64b7c3 (diff) |
logind,machined: various smaller cleanups
Use mfree() where we can.
Drop unnecessary {}.
Drop unnecessary variable declarations.
Cast syscall invocations where explicitly don't care for the return
value to (void).
Reword a comment.
Diffstat (limited to 'src/login/logind.c')
-rw-r--r-- | src/login/logind.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/login/logind.c b/src/login/logind.c index 49a2811842..cf71c0ec5a 100644 --- a/src/login/logind.c +++ b/src/login/logind.c @@ -907,8 +907,8 @@ static void manager_gc(Manager *m, bool drop_not_started) { session_get_state(session) != SESSION_CLOSING) session_stop(session, false); - /* Normally, this should make the session busy again, - * if it doesn't then let's get rid of it + /* Normally, this should make the session referenced + * again, if it doesn't then let's get rid of it * immediately */ if (!session_check_gc(session, drop_not_started)) { session_finalize(session); |