X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Flogin%2Flogind-utmp.c;h=4fe5ff0144f2caf3b62e263ca907bf1feec72f80;hb=f3f6ae7c983865ea37e8ddfbd676586e55280f1e;hp=917aa72aa2fbed0a30797e596daf157f1dbd5c95;hpb=e344997f56cfe3f2cd9682b9b0c70b5b36050623;p=elogind.git diff --git a/src/login/logind-utmp.c b/src/login/logind-utmp.c index 917aa72aa..4fe5ff014 100644 --- a/src/login/logind-utmp.c +++ b/src/login/logind-utmp.c @@ -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;