about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2013-03-08 16:46:45 +0000
committerJoseph Myers <joseph@codesourcery.com>2013-03-08 16:46:45 +0000
commitdd54b8644c60cd7b7bee27ecaae4138e7c056c01 (patch)
tree77b01ed80818f6033372b62739143b3e3eedac4e
parent1ba4f03035faabd9090f61ec5514e2abced5ca29 (diff)
downloadglibc-dd54b8644c60cd7b7bee27ecaae4138e7c056c01.tar.gz
glibc-dd54b8644c60cd7b7bee27ecaae4138e7c056c01.tar.xz
glibc-dd54b8644c60cd7b7bee27ecaae4138e7c056c01.zip
Remove __malloc_ptrdiff_t.
-rw-r--r--ChangeLog4
-rw-r--r--malloc/malloc.h3
-rw-r--r--malloc/morecore.c2
3 files changed, 5 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 4d9aac9ed0..721fedb315 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
diff --git a/malloc/malloc.h b/malloc/malloc.h
index 4695b7d0ad..cd691f103c 100644
--- a/malloc/malloc.h
+++ b/malloc/malloc.h
@@ -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
diff --git a/malloc/morecore.c b/malloc/morecore.c
index 3b19406347..57284e0a36 100644
--- a/malloc/morecore.c
+++ b/malloc/morecore.c
@@ -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)