[git commit] rename.c: simplify code, include only necessary headers

Bernhard Reutner-Fischer rep.dot.nop at gmail.com
Fri Jun 15 12:00:38 UTC 2012


commit: http://git.uclibc.org/uClibc/commit/?id=af58093c1417a523b35f652ca8df97df1dd70508
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/master

Signed-off-by: Peter S. Mazinger <ps.m at gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
---
 libc/sysdeps/linux/common/rename.c |   13 +------------
 1 files changed, 1 insertions(+), 12 deletions(-)

diff --git a/libc/sysdeps/linux/common/rename.c b/libc/sysdeps/linux/common/rename.c
index 9d8397a..6183cf4 100644
--- a/libc/sysdeps/linux/common/rename.c
+++ b/libc/sysdeps/linux/common/rename.c
@@ -8,17 +8,6 @@
  */
 
 #include <sys/syscall.h>
-#include <unistd.h>
-#include <string.h>
-#include <sys/param.h>
 #include <stdio.h>
 
-#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)


More information about the uClibc-cvs mailing list