UTMP: Fix runlevel regression after refactoring

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson
2016-08-09 20:35:03 +02:00
parent 2718c709aa
commit dbbe6b31b8
+1 -1
View File
@@ -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)