summaryrefslogtreecommitdiff
path: root/src/update-utmp.c
diff options
context:
space:
mode:
authorMichal Schmidt <mschmidt@redhat.com>2011-11-06 23:06:38 +0100
committerMichal Schmidt <mschmidt@redhat.com>2011-11-07 01:09:53 +0100
commit0ad26e09de813857382ec3a787fc6df5e52cf98b (patch)
treefb625b2733152c3bc8354b73ccda55b8d629da3a /src/update-utmp.c
parent4cbd9ecf45f64c3a9acc99d473fbf3be3687ae24 (diff)
utmp: remove unneded parameters
With these functions no caller ever passes anything else than 0 for 't' (meaning the current time will be used).
Diffstat (limited to 'src/update-utmp.c')
-rw-r--r--src/update-utmp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/update-utmp.c b/src/update-utmp.c
index 12e4d11042..073f28e254 100644
--- a/src/update-utmp.c
+++ b/src/update-utmp.c
@@ -284,7 +284,7 @@ static int on_shutdown(Context *c) {
}
#endif
- if ((q = utmp_put_shutdown(0)) < 0) {
+ if ((q = utmp_put_shutdown()) < 0) {
log_error("Failed to write utmp record: %s", strerror(-q));
r = q;
}
@@ -339,7 +339,7 @@ static int on_runlevel(Context *c) {
}
#endif
- if ((q = utmp_put_runlevel(0, runlevel, previous)) < 0) {
+ if ((q = utmp_put_runlevel(runlevel, previous)) < 0) {
log_error("Failed to write utmp record: %s", strerror(-q));
r = q;
}