OSDN Git Service
(root)
/
uclinux-h8
/
uclibc-ng.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b11d19
)
sync.c: simplify code
author
Peter S. Mazinger
<ps.m@gmx.net>
Sat, 16 Apr 2011 10:09:06 +0000
(12:09 +0200)
committer
Bernhard Reutner-Fischer
<rep.dot.nop@gmail.com>
Fri, 15 Jun 2012 12:00:39 +0000
(14:00 +0200)
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
libc/sysdeps/linux/common/sync.c
patch
|
blob
|
history
diff --git
a/libc/sysdeps/linux/common/sync.c
b/libc/sysdeps/linux/common/sync.c
index
126f40d
..
d7ac449
100644
(file)
--- 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