diff options
-rw-r--r-- | libc/sysdeps/linux/arm/brk.c | 15 | ||||
-rw-r--r-- | libc/sysdeps/linux/arm/syscall.c | 1 |
2 files changed, 7 insertions, 9 deletions
diff --git a/libc/sysdeps/linux/arm/brk.c b/libc/sysdeps/linux/arm/brk.c index da472194b..82b9835ae 100644 --- a/libc/sysdeps/linux/arm/brk.c +++ b/libc/sysdeps/linux/arm/brk.c @@ -26,15 +26,14 @@ void *__curbrk = 0; int brk (void *addr) { - void *newbrk = (void*)INTERNAL_SYSCALL(brk, , 1, addr); + void *newbrk = (void*)INTERNAL_SYSCALL(brk, , 1, addr); - __curbrk = newbrk; + __curbrk = newbrk; - if (newbrk < addr) - { - __set_errno (ENOMEM); - return -1; - } + if (newbrk < addr) { + __set_errno (ENOMEM); + return -1; + } - return 0; + return 0; } diff --git a/libc/sysdeps/linux/arm/syscall.c b/libc/sysdeps/linux/arm/syscall.c index 9f1e9928c..195c31c74 100644 --- a/libc/sysdeps/linux/arm/syscall.c +++ b/libc/sysdeps/linux/arm/syscall.c @@ -63,4 +63,3 @@ long syscall(long sysnum, long a, long b, long c, long d, long e, long f) } return (long) _r0; } - |