summaryrefslogtreecommitdiff
path: root/libc/sysdeps
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2011-04-16 11:54:48 +0200
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2012-06-15 14:00:38 +0200
commita30f4f75a3e4e128594a35e7d6b7e001eee54cb7 (patch)
tree166f8f1635606bb8cb5156a52aca7c883c2ef59c /libc/sysdeps
parenta55acdf73a3205a45664e39bc915a9d3d45ba785 (diff)
setuid.c: always_inline syscall
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc/sysdeps')
-rw-r--r--libc/sysdeps/linux/common/setuid.c4
1 files 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