From: Lennart Poettering Date: Sun, 28 Apr 2019 09:06:50 +0000 (+0200) Subject: logind: small simplification X-Git-Tag: v243-rc1~295^2~12 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e83b8b6bc2e34ccc82ce62c99b34f1c8e67ba83d;p=thirdparty%2Fsystemd.git logind: small simplification --- diff --git a/src/login/logind.c b/src/login/logind.c index 4c0e8ce6b1c..f8a01d156e9 100644 --- a/src/login/logind.c +++ b/src/login/logind.c @@ -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);