mirror of
https://github.com/troglobit/finit.git
synced 2026-11-08 16:11:10 +00:00
UTMP: Fix runlevel regression after refactoring
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
2718c709aa
commit
dbbe6b31b8
1 file changed
+1
-1
+1
-1
@@ -110,7 +110,7 @@ static int encode(int lvl)
|
|||||||
|
|
||||||
int utmp_set_runlevel(int pre, int now)
|
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)
|
int utmp_show(char *file)
|
||||||
|
|||||||
Reference in new issue
Block a user