#include "mmprivate.h"
-static PTR sbrk_morecore PARAMS ((struct mdesc *, int));
+static void* sbrk_morecore (struct mdesc *mdp, int size);
#if NEED_DECLARATION_SBRK
-extern PTR sbrk PARAMS ((int));
+extern void* sbrk (int size);
#endif
/* The mmalloc() package can use a single implicit malloc descriptor
/* Use sbrk() to get more core. */
-static PTR
+static void*
sbrk_morecore (mdp, size)
struct mdesc *mdp;
int size;
{
- PTR result;
+ void* result;
- if ((result = sbrk (size)) == (PTR) -1)
+ if ((result = sbrk (size)) == (void*) -1)
{
result = NULL;
}
base address must be suitably aligned. */
struct mdesc *
-__mmalloc_sbrk_init ()
+__mmalloc_sbrk_init (void)
{
- PTR base;
+ void* base;
unsigned int adj;
base = sbrk (0);