Use ISO C prototype for __default_morecore.
This commit is contained in:
parent
dd54b8644c
commit
5cc45e102b
|
@ -1,5 +1,7 @@
|
|||
2013-03-08 Joseph Myers <joseph@codesourcery.com>
|
||||
|
||||
* malloc/morecore.c (__default_morecore): Use ISO C prototype.
|
||||
|
||||
* malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
|
||||
* malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
|
||||
__malloc_ptrdiff_t.
|
||||
|
|
|
@ -42,8 +42,7 @@ libc_hidden_proto (__sbrk)
|
|||
and return the start of data space, or NULL on errors.
|
||||
If INCREMENT is negative, shrink data space. */
|
||||
__malloc_ptr_t
|
||||
__default_morecore (increment)
|
||||
ptrdiff_t increment;
|
||||
__default_morecore (ptrdiff_t increment)
|
||||
{
|
||||
__malloc_ptr_t result = (__malloc_ptr_t) __sbrk (increment);
|
||||
if (result == (__malloc_ptr_t) -1)
|
||||
|
|
Loading…
Reference in New Issue