chiark / gitweb /
logind: Don't try to emit a change signal for the 'Sessions' property (#5211)
[elogind.git] / src / login / logind-utmp.c
index 917aa72aa2fbed0a30797e596daf157f1dbd5c95..4fe5ff0144f2caf3b62e263ca907bf1feec72f80 100644 (file)
@@ -29,7 +29,7 @@
 #include "bus-common-errors.h"
 #include "bus-error.h"
 #include "bus-util.h"
-#include "formats-util.h"
+#include "format-util.h"
 #include "logind.h"
 //#include "special.h"
 #include "strv.h"
@@ -74,7 +74,7 @@ bool logind_wall_tty_filter(const char *tty, void *userdata) {
 static int warn_wall(Manager *m, usec_t n) {
         char date[FORMAT_TIMESTAMP_MAX] = {};
         _cleanup_free_ char *l = NULL;
-        bool left;
+        usec_t left;
         int r;
 
         assert(m);
@@ -148,7 +148,6 @@ int manager_setup_wall_message_timer(Manager *m) {
         if (!m->enable_wall_messages)
                 return 0;
 #endif // 1
-
         n = now(CLOCK_REALTIME);
         elapse = m->scheduled_shutdown_timeout;