mirror of
https://github.com/fluencelabs/musl
synced 2025-04-25 15:22:15 +00:00
fix missing return value warning in faccessat, minor cleanup
clone will pass the return value of the start function to SYS_exit anyway; there's no need to call the syscall directly.
This commit is contained in:
parent
f0328a5656
commit
316d6741b6
@ -19,7 +19,7 @@ static int checker(void *p)
|
|||||||
__syscall(SYS_exit, 1);
|
__syscall(SYS_exit, 1);
|
||||||
ret = __syscall(SYS_faccessat, c->fd, c->filename, c->amode, 0);
|
ret = __syscall(SYS_faccessat, c->fd, c->filename, c->amode, 0);
|
||||||
__syscall(SYS_write, c->p, &ret, sizeof ret);
|
__syscall(SYS_write, c->p, &ret, sizeof ret);
|
||||||
__syscall(SYS_exit, 0);
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int faccessat(int fd, const char *filename, int amode, int flag)
|
int faccessat(int fd, const char *filename, int amode, int flag)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user