Browse Source

Unbreak 64-bit archs...

OPENBSD_3_4
tdeval 21 years ago
parent
commit
2fc00a431b
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/lib/libc/stdlib/malloc.c

+ 2
- 2
src/lib/libc/stdlib/malloc.c View File

@ -8,7 +8,7 @@
*/ */
#if defined(LIBC_SCCS) && !defined(lint) #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 */ #endif /* LIBC_SCCS and not lint */
/* /*
@ -391,7 +391,7 @@ map_pages(pages)
} }
tail = result + pages; tail = result + pages;
if ((int)brk(tail) == -1) {
if (brk(tail) == (char *)-1) {
#ifdef MALLOC_EXTRA_SANITY #ifdef MALLOC_EXTRA_SANITY
wrterror("(ES): map_pages fails\n"); wrterror("(ES): map_pages fails\n");
#endif /* MALLOC_EXTRA_SANITY */ #endif /* MALLOC_EXTRA_SANITY */


Loading…
Cancel
Save