mirror of
https://github.com/reactos/syzkaller.git
synced 2025-02-26 14:45:32 +00:00
executor: use linux result convention for fuchsia
In several places we assume that -1 is failure and 0 is OK. Use this convention for fuchsia as well.
This commit is contained in:
parent
0c5447b340
commit
97d44b0288
@ -35,8 +35,10 @@ long execute_syscall(call_t* c, long a0, long a1, long a2, long a3, long a4, lon
|
||||
{
|
||||
long res = ZX_ERR_INVALID_ARGS;
|
||||
NONFAILING(res = c->call(a0, a1, a2, a3, a4, a5, a6, a7, a8));
|
||||
if (res == ZX_OK)
|
||||
return 0;
|
||||
errno = res;
|
||||
return res;
|
||||
return -1;
|
||||
}
|
||||
|
||||
void cover_open()
|
||||
|
Loading…
x
Reference in New Issue
Block a user