mirror of
https://github.com/troglobit/finit.git
synced 2026-11-17 19:30:29 +00:00
Follow-up to bd9bb92, missing API change
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
bd9bb92ca0
commit
54dd726d16
1 file changed
+1
-1
@@ -250,7 +250,7 @@ static int do_reboot(int cmd, char *buf, size_t len)
|
|||||||
case INIT_CMD_SUSPEND:
|
case INIT_CMD_SUSPEND:
|
||||||
_d("suspend");
|
_d("suspend");
|
||||||
sync();
|
sync();
|
||||||
rc = sys_suspend();
|
rc = suspend();
|
||||||
if (rc) {
|
if (rc) {
|
||||||
if (errno == EINVAL)
|
if (errno == EINVAL)
|
||||||
snprintf(buf, len, "Kernel does not support suspend to RAM.");
|
snprintf(buf, len, "Kernel does not support suspend to RAM.");
|
||||||
|
|||||||
Reference in new issue
Block a user