summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/arm/brk.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/arm/brk.c')
-rw-r--r--libc/sysdeps/linux/arm/brk.c15
1 files changed, 7 insertions, 8 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;
}