projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0328a5
)
fix missing return value warning in faccessat, minor cleanup
author
Rich Felker
<dalias@aerifal.cx>
Sun, 1 Sep 2013 03:15:48 +0000
(23:15 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Sun, 1 Sep 2013 03:15:48 +0000
(23:15 -0400)
clone will pass the return value of the start function to SYS_exit
anyway; there's no need to call the syscall directly.
src/unistd/faccessat.c
patch
|
blob
|
history
diff --git
a/src/unistd/faccessat.c
b/src/unistd/faccessat.c
index 6a88097dde9db8b877648729ecbafb63d33588a0..5b2c5e307552085c34fe34a94a1c732c43a38c44 100644
(file)
--- a/
src/unistd/faccessat.c
+++ b/
src/unistd/faccessat.c
@@
-19,7
+19,7
@@
static int checker(void *p)
__syscall(SYS_exit, 1);
ret = __syscall(SYS_faccessat, c->fd, c->filename, c->amode, 0);
__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)