chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gpt-auto-generator: include device name in error reports
[elogind.git]
/
src
/
update-utmp
/
update-utmp.c
diff --git
a/src/update-utmp/update-utmp.c
b/src/update-utmp/update-utmp.c
index a311280c2792fc62777c7cfd878337a82bf14127..202aa987675b459b1b960b17f0e666c6f591ca4f 100644
(file)
--- a/
src/update-utmp/update-utmp.c
+++ b/
src/update-utmp/update-utmp.c
@@
-104,7
+104,7
@@
static int get_current_runlevel(Context *c) {
{ '3', SPECIAL_RUNLEVEL3_TARGET },
{ '4', SPECIAL_RUNLEVEL4_TARGET },
{ '2', SPECIAL_RUNLEVEL2_TARGET },
{ '3', SPECIAL_RUNLEVEL3_TARGET },
{ '4', SPECIAL_RUNLEVEL4_TARGET },
{ '2', SPECIAL_RUNLEVEL2_TARGET },
- { '
S
', SPECIAL_RESCUE_TARGET },
+ { '
1
', SPECIAL_RESCUE_TARGET },
};
const char
*interface = "org.freedesktop.systemd1.Unit",
};
const char
*interface = "org.freedesktop.systemd1.Unit",
@@
-313,11
+313,10
@@
static int on_runlevel(Context *c) {
int main(int argc, char *argv[]) {
int r;
DBusError error;
int main(int argc, char *argv[]) {
int r;
DBusError error;
- Context c;
+ Context c
= {}
;
dbus_error_init(&error);
dbus_error_init(&error);
- zero(c);
#ifdef HAVE_AUDIT
c.audit_fd = -1;
#endif
#ifdef HAVE_AUDIT
c.audit_fd = -1;
#endif