浏览代码

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>
Peter S. Mazinger 13 年之前
父节点
当前提交
6b1fe09331
共有 1 个文件被更改,包括 3 次插入7 次删除
  1. 3 7
      libc/sysdeps/linux/common/sync.c

+ 3 - 7
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