From ee9311f4971a4dfdf33e949dad33ba76a3d62334 Mon Sep 17 00:00:00 2001
From: Peter S. Mazinger <ps.m@gmx.net>
Date: Sat, 16 Apr 2011 12:09:06 +0200
Subject: [PATCH 284/396] sync.c: simplify code

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
---
 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
-- 
1.7.0.4

