summaryrefslogtreecommitdiff
path: root/os
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2011-02-05 13:43:35 -0800
committerPixel <pixel@nobis-crew.org>2011-02-05 13:43:35 -0800
commitab16fcf76e616dfa7cac2cb3dd909ba2a8eb2a9f (patch)
tree5f93ecc452d648bbd84ffeda38ee5a0247e37dcc /os
parent8361bc28f9215a07e2275f55561408d1bfca112f (diff)
Slightly better errno support.
Diffstat (limited to 'os')
-rw-r--r--os/src/sbrk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/os/src/sbrk.c b/os/src/sbrk.c
index fcb6b7a..e831d38 100644
--- a/os/src/sbrk.c
+++ b/os/src/sbrk.c
@@ -25,7 +25,7 @@ void * sbrk(ptrdiff_t incr) {
/* Check if this allocation would exceed the end of the ram - would probably get into the stack first however */
if (next_heap_end > stack_min) {
- _impure_ptr->_errno = ENOMEM;
+ set_errno(ENOMEM);
ret = NULL;
} else {
heap_end = next_heap_end;