diff options
author | Thierry Deval <tdeval@cvs.openbsd.org> | 2003-05-14 17:46:40 +0000 |
---|---|---|
committer | Thierry Deval <tdeval@cvs.openbsd.org> | 2003-05-14 17:46:40 +0000 |
commit | 10540a60030049267dfec8e2294d42b34a46131d (patch) | |
tree | e1400436bcb6426ea6e5adde707d6a4d71a6e7f3 /lib/libc | |
parent | 7a050d11c740627720d84df855b52e01a05ae95f (diff) |
Unbreak 64-bit archs...
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/stdlib/malloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/stdlib/malloc.c b/lib/libc/stdlib/malloc.c index d1dba276f12..e1294732030 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.55 2003/05/14 15:41:51 tdeval Exp $"; +static char rcsid[] = "$OpenBSD: malloc.c,v 1.56 2003/05/14 17:46:39 tdeval Exp $"; #endif /* LIBC_SCCS and not lint */ /* @@ -391,7 +391,7 @@ map_pages(pages) } tail = result + pages; - if ((int)brk(tail) == -1) { + if (brk(tail) == (char *)-1) { #ifdef MALLOC_EXTRA_SANITY wrterror("(ES): map_pages fails\n"); #endif /* MALLOC_EXTRA_SANITY */ |