diff options
author | Sven Eden <yamakuzure@gmx.net> | 2017-06-14 17:21:19 +0200 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2017-06-16 10:13:01 +0200 |
commit | 34f4737c00f51e8477cf32b30bba4f981bed093e (patch) | |
tree | d86ab05b0058671a6ecb3b777e4ff4115a23c77d /src/update-utmp/update-utmp.c | |
parent | 7bb0c7484d6ca8b59ca81e8316eccba04be41ce1 (diff) |
Prep v231: Minor fix for update-utmp
Diffstat (limited to 'src/update-utmp/update-utmp.c')
-rw-r--r-- | src/update-utmp/update-utmp.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/update-utmp/update-utmp.c b/src/update-utmp/update-utmp.c index 716208406..655615fc0 100644 --- a/src/update-utmp/update-utmp.c +++ b/src/update-utmp/update-utmp.c @@ -38,12 +38,10 @@ //#include "util.h" #include "utmp-wtmp.h" -/// includes needed by elogind: +/// Additional includes needed by elogind #include "string-util.h" #include "time-util.h" #include "update-utmp.h" - - typedef struct Context { sd_bus *bus; #ifdef HAVE_AUDIT @@ -270,7 +268,6 @@ void update_utmp(int argc, char* argv[], sd_bus *bus) { if (c.audit_fd < 0 && errno != EAFNOSUPPORT && errno != EPROTONOSUPPORT) log_error_errno(errno, "Failed to connect to audit log: %m"); #endif - #if 0 /// UNNEEDED by elogind r = bus_connect_system_systemd(&c.bus); if (r < 0) { @@ -302,14 +299,12 @@ finish: else if (streq(argv[1], "shutdown")) (void)on_shutdown(&c); #endif // 0 - #ifdef HAVE_AUDIT if (c.audit_fd >= 0) audit_close(c.audit_fd); #endif sd_bus_flush_close_unref(c.bus); - #if 0 /// UNNEEDED by elogind return r < 0 ? EXIT_FAILURE : EXIT_SUCCESS; #endif // 0 |