From 3f549ec2791de2c021fdbb680bcbf7083736b70f Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Tue, 13 Feb 2001 00:33:30 +0000 Subject: Use MAP_FAILED. --- libc/stdlib/malloc-simple/alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3