about summary refs log tree commit diff
path: root/src/unistd
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2013-08-31 23:15:48 -0400
committerRich Felker <dalias@aerifal.cx>2013-08-31 23:15:48 -0400
commit316d6741b68b485205d7233c98bd6c795bb80370 (patch)
tree5eca1b9c490662ce886584fde9d1ee73d9b7c7d3 /src/unistd
parentf0328a565692320784fa8032f176e40d0998aedd (diff)
downloadmusl-316d6741b68b485205d7233c98bd6c795bb80370.tar.gz
musl-316d6741b68b485205d7233c98bd6c795bb80370.tar.xz
musl-316d6741b68b485205d7233c98bd6c795bb80370.zip
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.
Diffstat (limited to 'src/unistd')
-rw-r--r--src/unistd/faccessat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unistd/faccessat.c b/src/unistd/faccessat.c
index 6a88097d..5b2c5e30 100644
--- 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)