diff --git a/src/linux/dup3.c b/src/linux/dup3.c index e201ef01574c07652900ee7bfb4354d482c88978..18f6fccef24fb12fdc83a72958d3423618ae7a1d 100644 --- a/src/linux/dup3.c +++ b/src/linux/dup3.c @@ -4,7 +4,7 @@ #include "syscall.h" int dup3(int old, int new, int flags) { - int r; - while ((r=__syscall(SYS_dup3, old, new, flags))==-EBUSY); - return __syscall_ret(r); + int r; + while ((r=__syscall(SYS_dup3, old, new, flags))==-EBUSY); + return __syscall_ret(r); } diff --git a/src/linux/setns.c b/src/linux/setns.c index af3eb092f5a8382a7ce4fb5962cdcfbad136ec90..7029b7480571fd6614eeca5f93ca416ebbb17149 100644 --- a/src/linux/setns.c +++ b/src/linux/setns.c @@ -5,5 +5,5 @@ int setns(int fd, int nstype) { - return syscall(SYS_setns, fd, nstype); + return syscall(SYS_setns, fd, nstype); } diff --git a/src/thread/x86_64/__set_thread_area.s b/src/thread/x86_64/__set_thread_area.s index cc538e52e23e6c3fefcf5eb6a3802a1e3729cdfe..f3ff4f61bf321fe2e8a2cde92e02a57b01847ed4 100644 --- a/src/thread/x86_64/__set_thread_area.s +++ b/src/thread/x86_64/__set_thread_area.s @@ -3,8 +3,8 @@ .global __set_thread_area .type __set_thread_area,@function __set_thread_area: - mov %rdi,%rsi /* shift for syscall */ - movl $0x1002,%edi /* SET_FS register */ - movl $158,%eax /* set fs segment to */ - syscall /* arch_prctl(SET_FS, arg)*/ + mov %rdi,%rsi /* shift for syscall */ + movl $0x1002,%edi /* SET_FS register */ + movl $158,%eax /* set fs segment to */ + syscall /* arch_prctl(SET_FS, arg)*/ ret diff --git a/src/unistd/acct.c b/src/unistd/acct.c index 93847127cabf71f4e158ca85ab73d4167c6836f5..f6f25a8a62de67e53f34ecc1a9774f608a7dd7e7 100644 --- a/src/unistd/acct.c +++ b/src/unistd/acct.c @@ -5,5 +5,5 @@ int acct(const char *filename) { - return syscall(SYS_acct, filename); + return syscall(SYS_acct, filename); }