From af58093c1417a523b35f652ca8df97df1dd70508 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Sat, 16 Apr 2011 01:52:51 +0200 Subject: rename.c: simplify code, include only necessary headers Signed-off-by: Peter S. Mazinger Signed-off-by: Bernhard Reutner-Fischer --- libc/sysdeps/linux/common/rename.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'libc/sysdeps/linux/common') diff --git a/libc/sysdeps/linux/common/rename.c b/libc/sysdeps/linux/common/rename.c index 9d8397a8f..6183cf494 100644 --- a/libc/sysdeps/linux/common/rename.c +++ b/libc/sysdeps/linux/common/rename.c @@ -8,17 +8,6 @@ */ #include -#include -#include -#include #include -#define __NR___syscall_rename __NR_rename -static __inline__ _syscall2(int, __syscall_rename, const char *, oldpath, - const char *, newpath) - -int rename(const char * oldpath, const char * newpath) -{ - return __syscall_rename(oldpath, newpath); -} - +_syscall2(int, rename, const char *, oldpath, const char *, newpath) -- cgit v1.2.3