From 572dcdadb03c7b76b08caa9c789a4819fd0feb27 Mon Sep 17 00:00:00 2001
From: Peter S. Mazinger <ps.m@gmx.net>
Date: Mon, 21 Mar 2011 23:29:52 +0100
Subject: [PATCH 161/396] chdir.c: simplify code

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
---
 libc/sysdeps/linux/common/chdir.c |   10 +---------
 1 files changed, 1 insertions(+), 9 deletions(-)

diff --git a/libc/sysdeps/linux/common/chdir.c b/libc/sysdeps/linux/common/chdir.c
index e138101..5328fd2 100644
--- a/libc/sysdeps/linux/common/chdir.c
+++ b/libc/sysdeps/linux/common/chdir.c
@@ -8,15 +8,7 @@
  */
 
 #include <sys/syscall.h>
-#include <string.h>
 #include <unistd.h>
-#include <sys/param.h>
 
-
-#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)
-- 
1.7.0.4

