mirror of
https://github.com/troglobit/finit.git
synced 2026-10-05 07:13:44 +07:00
UTMP: Fix runlevel regression after refactoring
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
+1
-1
@@ -110,7 +110,7 @@ static int encode(int lvl)
|
||||
|
||||
int utmp_set_runlevel(int pre, int now)
|
||||
{
|
||||
return utmp_set(RUN_LVL, (encode(pre) << 8) | (encode(now) & 0xFF), "runlevel", NULL, NULL);
|
||||
return utmp_set(RUN_LVL, (encode(pre) << 8) | (encode(now) & 0xFF), NULL, NULL, "runlevel");
|
||||
}
|
||||
|
||||
int utmp_show(char *file)
|
||||
|
||||
Reference in New Issue
Block a user