summary refs log tree commit diff
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2013-03-08 16:47:43 +0000
committerJoseph Myers <joseph@codesourcery.com>2013-03-08 16:47:43 +0000
commit5cc45e102bdc19dec494e4ae8f0eb832f11af3e5 (patch)
tree6893dc93edc0838d99dce16f1411b3011b41d37a
parentdd54b8644c60cd7b7bee27ecaae4138e7c056c01 (diff)
downloadglibc-5cc45e102bdc19dec494e4ae8f0eb832f11af3e5.tar.gz
glibc-5cc45e102bdc19dec494e4ae8f0eb832f11af3e5.tar.xz
glibc-5cc45e102bdc19dec494e4ae8f0eb832f11af3e5.zip
Use ISO C prototype for __default_morecore.
-rw-r--r--ChangeLog2
-rw-r--r--malloc/morecore.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 721fedb315..651374bbb5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
diff --git a/malloc/morecore.c b/malloc/morecore.c
index 57284e0a36..e391732b3d 100644
--- a/malloc/morecore.c
+++ b/malloc/morecore.c
@@ -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)