2002-05-25 Robert Collins <rbtcollins@hotmail.com>
* gmon.c (fake_sbrk): Correctly return -1 on failed malloc's.
This commit is contained in:
parent
ff93854697
commit
a6247be998
|
@ -1,3 +1,7 @@
|
||||||
|
2002-05-25 Robert Collins <rbtcollins@hotmail.com>
|
||||||
|
|
||||||
|
* gmon.c (fake_sbrk): Correctly return -1 on failed malloc's.
|
||||||
|
|
||||||
2002-05-24 Christopher Faylor <cgf@redhat.com>
|
2002-05-24 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
* dtable.cc (dtable::build_fhandler_from_name): Just pass posix path
|
* dtable.cc (dtable::build_fhandler_from_name): Just pass posix path
|
||||||
|
|
|
@ -44,6 +44,7 @@ static char rcsid[] = "$OpenBSD: gmon.c,v 1.8 1997/07/23 21:11:27 kstailey Exp $
|
||||||
#include <gmon.h>
|
#include <gmon.h>
|
||||||
|
|
||||||
#include <profil.h>
|
#include <profil.h>
|
||||||
|
#include <windows.h>
|
||||||
|
|
||||||
/* XXX needed? */
|
/* XXX needed? */
|
||||||
//extern char *minbrk __asm ("minbrk");
|
//extern char *minbrk __asm ("minbrk");
|
||||||
|
@ -61,7 +62,11 @@ void moncontrol __P((int));
|
||||||
static void *
|
static void *
|
||||||
fake_sbrk(int size)
|
fake_sbrk(int size)
|
||||||
{
|
{
|
||||||
return malloc(size);
|
void *rv = malloc(size);
|
||||||
|
if (rv)
|
||||||
|
return rv;
|
||||||
|
else
|
||||||
|
return (void *) -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in New Issue