about summary refs log tree commit diff
path: root/malloc/morecore.c
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2013-03-08 21:27:42 +0000
committerJoseph Myers <joseph@codesourcery.com>2013-03-08 21:27:42 +0000
commita222d91a13149b7034226ff35c55760989089cbd (patch)
tree1c2ecae0c9cd09dcafd47216d7eed8a6e41a1731 /malloc/morecore.c
parent5cc45e102bdc19dec494e4ae8f0eb832f11af3e5 (diff)
downloadglibc-a222d91a13149b7034226ff35c55760989089cbd.tar.gz
glibc-a222d91a13149b7034226ff35c55760989089cbd.tar.xz
glibc-a222d91a13149b7034226ff35c55760989089cbd.zip
Remove __malloc_ptr_t.
Diffstat (limited to 'malloc/morecore.c')
-rw-r--r--malloc/morecore.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/malloc/morecore.c b/malloc/morecore.c
index e391732b3d..0a644c36ad 100644
--- a/malloc/morecore.c
+++ b/malloc/morecore.c
@@ -30,7 +30,7 @@
 
 #include <stddef.h>
 #include <stdlib.h>
-extern __malloc_ptr_t __sbrk (ptrdiff_t increment) __THROW;
+extern void *__sbrk (ptrdiff_t increment) __THROW;
 libc_hidden_proto (__sbrk)
 #endif
 
@@ -41,11 +41,11 @@ libc_hidden_proto (__sbrk)
 /* Allocate INCREMENT more bytes of data space,
    and return the start of data space, or NULL on errors.
    If INCREMENT is negative, shrink data space.  */
-__malloc_ptr_t
+void *
 __default_morecore (ptrdiff_t increment)
 {
-  __malloc_ptr_t result = (__malloc_ptr_t) __sbrk (increment);
-  if (result == (__malloc_ptr_t) -1)
+  void *result = (void *) __sbrk (increment);
+  if (result == (void *) -1)
     return NULL;
   return result;
 }