summaryrefslogtreecommitdiff
path: root/libc/stdlib/malloc-simple/alloc.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-02-13 00:33:30 +0000
committerEric Andersen <andersen@codepoet.org>2001-02-13 00:33:30 +0000
commit3f549ec2791de2c021fdbb680bcbf7083736b70f (patch)
tree6ee96f05ed6f6befa0abc83b368ad4bee80e79e5 /libc/stdlib/malloc-simple/alloc.c
parent314b6a528c9756572e855389c6cb09c18a558747 (diff)
Use MAP_FAILED.
Diffstat (limited to 'libc/stdlib/malloc-simple/alloc.c')
-rw-r--r--libc/stdlib/malloc-simple/alloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/stdlib/malloc-simple/alloc.c b/libc/stdlib/malloc-simple/alloc.c
index f278a9583..ed1c381a5 100644
--- a/libc/stdlib/malloc-simple/alloc.c
+++ b/libc/stdlib/malloc-simple/alloc.c
@@ -74,7 +74,7 @@ void *malloc(size_t len)
#endif
);
- if (result == (void *) -1)
+ if (result == MAP_FAILED)
return 0;
return result;