2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-30 22:05:36 +00:00

lib: return -EBADE instead of -1

Signed-off-by: Ruslan Kuprieiev <kupruser@gmail.com>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Ruslan Kuprieiev
2013-12-18 15:50:27 +04:00
committed by Pavel Emelyanov
parent e4c366806f
commit e80ee17368
2 changed files with 10 additions and 10 deletions

View File

@@ -231,7 +231,7 @@ int criu_check(void)
if (ret)
goto exit;
ret = resp->success ? 0 : -1;
ret = resp->success ? 0 : -EBADE;
exit:
if (resp)
@@ -263,7 +263,7 @@ int criu_dump(void)
else
ret = 0;
} else
ret = -1;
ret = -EBADE;
exit:
if (resp)
@@ -292,7 +292,7 @@ int criu_restore(void)
if (resp->success)
ret = resp->restore->pid;
else
ret = -1;
ret = -EBADE;
exit:
if (resp)