From f0e0d954f28e34497d999f7d4c1249bb20301880 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Mon, 21 Mar 2011 23:29:52 +0100 Subject: chdir.c: simplify code Signed-off-by: Peter S. Mazinger Signed-off-by: Bernhard Reutner-Fischer --- libc/sysdeps/linux/common/chdir.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'libc/sysdeps/linux/common/chdir.c') diff --git a/libc/sysdeps/linux/common/chdir.c b/libc/sysdeps/linux/common/chdir.c index e13810196..5328fd2f7 100644 --- a/libc/sysdeps/linux/common/chdir.c +++ b/libc/sysdeps/linux/common/chdir.c @@ -8,15 +8,7 @@ */ #include -#include #include -#include - -#define __NR___syscall_chdir __NR_chdir -static __inline__ _syscall1(int, __syscall_chdir, const char *, path) -int chdir(const char *path) -{ - return __syscall_chdir(path); -} +_syscall1(int, chdir, const char *, path) libc_hidden_def(chdir) -- cgit v1.2.3