From a30f4f75a3e4e128594a35e7d6b7e001eee54cb7 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Sat, 16 Apr 2011 11:54:48 +0200 Subject: setuid.c: always_inline syscall Signed-off-by: Peter S. Mazinger Signed-off-by: Bernhard Reutner-Fischer --- libc/sysdeps/linux/common/setuid.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libc/sysdeps/linux/common/setuid.c b/libc/sysdeps/linux/common/setuid.c index 7fd8c65e6..470be1f0f 100644 --- a/libc/sysdeps/linux/common/setuid.c +++ b/libc/sysdeps/linux/common/setuid.c @@ -22,7 +22,7 @@ _syscall1(int, setuid, uid_t, uid) #else # define __NR___syscall_setuid __NR_setuid -static __inline__ _syscall1(int, __syscall_setuid, __kernel_uid_t, uid) +static __always_inline _syscall1(int, __syscall_setuid, __kernel_uid_t, uid) int setuid(uid_t uid) { @@ -30,6 +30,6 @@ int setuid(uid_t uid) __set_errno(EINVAL); return -1; } - return (__syscall_setuid(uid)); + return __syscall_setuid(uid); } #endif -- cgit v1.2.3