Bladeren bron

nanosleep.c, fsync.c: do not inline syscall, it is used twice

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger 14 jaren geleden
bovenliggende
commit
2668ea217f
2 gewijzigde bestanden met toevoegingen van 3 en 3 verwijderingen
  1. 1 1
      libc/sysdeps/linux/common/fsync.c
  2. 2 2
      libc/sysdeps/linux/common/nanosleep.c

+ 1 - 1
libc/sysdeps/linux/common/fsync.c

@@ -17,7 +17,7 @@
 #endif
 
 #define __NR___syscall_fsync __NR_fsync
-static inline _syscall1(int, __syscall_fsync, int, fd)
+static _syscall1(int, __syscall_fsync, int, fd)
 
 extern __typeof(fsync) __libc_fsync;
 

+ 2 - 2
libc/sysdeps/linux/common/nanosleep.c

@@ -18,8 +18,8 @@
 #endif
 
 #define __NR___syscall_nanosleep __NR_nanosleep
-static inline _syscall2(int, __syscall_nanosleep, const struct timespec *, req,
-						struct timespec *, rem);
+static _syscall2(int, __syscall_nanosleep, const struct timespec *, req,
+		 struct timespec *, rem);
 
 extern __typeof(nanosleep) __libc_nanosleep;