Remove __malloc_ptrdiff_t.

This commit is contained in:
Joseph Myers 2013-03-08 16:46:45 +00:00
parent 1ba4f03035
commit dd54b8644c
3 changed files with 5 additions and 4 deletions

View File

@ -1,5 +1,9 @@
2013-03-08 Joseph Myers <joseph@codesourcery.com>
* malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
* malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
__malloc_ptrdiff_t.
* malloc/malloc.h (__malloc_size_t): Remove macro.
* malloc/mcheck.c (old_malloc_hook): Use size_t instead of
__malloc_size_t.

View File

@ -24,9 +24,6 @@
#include <stdio.h>
# define __malloc_ptr_t void *
/* Used by GNU libc internals. */
#define __malloc_ptrdiff_t ptrdiff_t
#ifdef _LIBC
# define __MALLOC_HOOK_VOLATILE
# define __MALLOC_DEPRECATED

View File

@ -43,7 +43,7 @@ libc_hidden_proto (__sbrk)
If INCREMENT is negative, shrink data space. */
__malloc_ptr_t
__default_morecore (increment)
__malloc_ptrdiff_t increment;
ptrdiff_t increment;
{
__malloc_ptr_t result = (__malloc_ptr_t) __sbrk (increment);
if (result == (__malloc_ptr_t) -1)