From: Rich Felker Date: Sun, 1 Sep 2013 03:15:48 +0000 (-0400) Subject: fix missing return value warning in faccessat, minor cleanup X-Git-Tag: v0.9.14~51 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=316d6741b68b485205d7233c98bd6c795bb80370;p=oweals%2Fmusl.git 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. --- 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)