diff options
author | 2001-05-11 15:30:13 +0000 | |
---|---|---|
committer | 2001-05-11 15:30:13 +0000 | |
commit | e7cdc3722fc01740758b93747cb1d14b0323a7dd (patch) | |
tree | 6954c4fbadd5b55a772c529c096c80d58e4352d5 /lib/libc/stdlib | |
parent | go away (diff) | |
download | wireguard-openbsd-e7cdc3722fc01740758b93747cb1d14b0323a7dd.tar.xz wireguard-openbsd-e7cdc3722fc01740758b93747cb1d14b0323a7dd.zip |
-1 -> MAP_FAILED
Diffstat (limited to 'lib/libc/stdlib')
-rw-r--r-- | lib/libc/stdlib/malloc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/stdlib/malloc.c b/lib/libc/stdlib/malloc.c index d9211e2641f..deef086428a 100644 --- a/lib/libc/stdlib/malloc.c +++ b/lib/libc/stdlib/malloc.c @@ -8,7 +8,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: malloc.c,v 1.41 2001/05/10 16:14:19 art Exp $"; +static char rcsid[] = "$OpenBSD: malloc.c,v 1.42 2001/05/11 15:30:14 art Exp $"; #endif /* LIBC_SCCS and not lint */ /* @@ -485,7 +485,7 @@ extend_pgdir(index) /* Get new pages */ new = (struct pginfo**) MMAP(i * malloc_pagesize); - if (new == (struct pginfo **)-1) + if (new == MAP_FAILED) return 0; /* Copy the old stuff */ @@ -592,7 +592,7 @@ malloc_init () /* Allocate one page for the page directory */ page_dir = (struct pginfo **) MMAP(malloc_pagesize); - if (page_dir == (struct pginfo **) -1) + if (page_dir == MAP_FAILED) wrterror("mmap(2) failed, check limits.\n"); /* |