diff options
author | Rich Felker <dalias@aerifal.cx> | 2011-09-26 00:59:28 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2011-09-26 00:59:28 -0400 |
commit | fd142e5ec44aaafffbb8bb4ea41c4288d3fa937a (patch) | |
tree | 23fac00d2f8a9d7851d336d9bbb7d3417edc6980 /src/linux | |
parent | 729d6368bdf9faa33299cdfa68efc7422af33bd7 (diff) | |
download | musl-fd142e5ec44aaafffbb8bb4ea41c4288d3fa937a.tar.gz musl-fd142e5ec44aaafffbb8bb4ea41c4288d3fa937a.tar.bz2 musl-fd142e5ec44aaafffbb8bb4ea41c4288d3fa937a.tar.xz musl-fd142e5ec44aaafffbb8bb4ea41c4288d3fa937a.zip |
cleanup various minor issues reported by nsz
the changes to syscall_ret are mostly no-ops in the generated code,
just cleanup of type issues and removal of some implementation-defined
behavior. the one exception is the change in the comparison value,
which is fixed so that 0xf...f000 (which in principle could be a valid
return value for mmap, although probably never in reality) is not
treated as an error return.
Diffstat (limited to 'src/linux')
-rw-r--r-- | src/linux/sbrk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/linux/sbrk.c b/src/linux/sbrk.c index 5fab74be..36437653 100644 --- a/src/linux/sbrk.c +++ b/src/linux/sbrk.c @@ -1,7 +1,7 @@ -#include <stddef.h> +#include <stdint.h> #include "syscall.h" -void *sbrk(ptrdiff_t inc) +void *sbrk(intptr_t inc) { unsigned long cur = syscall(SYS_brk, 0); if (inc && syscall(SYS_brk, cur+inc) != cur+inc) return (void *)-1; |