From 0ad26e09de813857382ec3a787fc6df5e52cf98b Mon Sep 17 00:00:00 2001 From: Michal Schmidt Date: Sun, 6 Nov 2011 23:06:38 +0100 Subject: utmp: remove unneded parameters With these functions no caller ever passes anything else than 0 for 't' (meaning the current time will be used). --- src/update-utmp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/update-utmp.c') 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; } -- cgit v1.2.3-54-g00ecf