]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
logind: small simplification
authorLennart Poettering <lennart@poettering.net>
Sun, 28 Apr 2019 09:06:50 +0000 (11:06 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 24 May 2019 13:05:27 +0000 (15:05 +0200)
src/login/logind.c

index 4c0e8ce6b1c8668837cf0261792278c276547b0d..f8a01d156e9ff07bd2bea527a265e57306edf1a9 100644 (file)
@@ -44,10 +44,9 @@ static int manager_new(Manager **ret) {
         *m = (Manager) {
                 .console_active_fd = -1,
                 .reserve_vt_fd = -1,
+                .idle_action_not_before_usec = now(CLOCK_MONOTONIC),
         };
 
-        m->idle_action_not_before_usec = now(CLOCK_MONOTONIC);
-
         m->devices = hashmap_new(&string_hash_ops);
         m->seats = hashmap_new(&string_hash_ops);
         m->sessions = hashmap_new(&string_hash_ops);