[git commit] sync.c: simplify code
Bernhard Reutner-Fischer
rep.dot.nop at gmail.com
Fri Jun 15 12:00:39 UTC 2012
commit: http://git.uclibc.org/uClibc/commit/?id=6b1fe09331da51e244ccb40b415a3ac146f854ad
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/master
Signed-off-by: Peter S. Mazinger <ps.m at gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
---
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 126f40d..d7ac449 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
More information about the uClibc-cvs
mailing list