diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2011-04-16 12:09:06 +0200 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2012-06-15 14:00:39 +0200 |
commit | 6b1fe09331da51e244ccb40b415a3ac146f854ad (patch) | |
tree | 54626b9464ee48708a9d7b1db0126c42dba3bfc0 /libc/sysdeps | |
parent | 1b11d19b60208e1dc932244aba6756eafa1e67ce (diff) |
sync.c: simplify code
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc/sysdeps')
-rw-r--r-- | libc/sysdeps/linux/common/sync.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/libc/sysdeps/linux/common/sync.c b/libc/sysdeps/linux/common/sync.c index 126f40dd8..d7ac44967 100644 --- a/libc/sysdeps/linux/common/sync.c +++ b/libc/sysdeps/linux/common/sync.c @@ -8,12 +8,8 @@ */ #include <sys/syscall.h> -# if defined __USE_BSD || defined __USE_UNIX98 -#include <sys/types.h> -#include <unistd.h> -void sync(void) -{ - INLINE_SYSCALL(sync, 0); -} +#if defined __USE_BSD || defined __USE_UNIX98 +# include <unistd.h> +_syscall0(void, sync) #endif |