about summary refs log tree commit diff
path: root/malloc/malloc.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2017-08-31 12:02:59 +0200
committerSiddhesh Poyarekar <siddhesh@sourceware.org>2017-11-28 19:11:30 +0530
commit533afac92904cc6037b54469763105508b45ace0 (patch)
tree28bc2feca34e321c17265f7fc2649d8de98eae7f /malloc/malloc.c
parent675e8785dc66ea0dba39c65ee7cf1bc8d185e723 (diff)
downloadglibc-533afac92904cc6037b54469763105508b45ace0.tar.gz
glibc-533afac92904cc6037b54469763105508b45ace0.tar.xz
glibc-533afac92904cc6037b54469763105508b45ace0.zip
malloc: Change top_check return type to void
After commit ec2c1fcefb200c6cb7e09553f3c6af8815013d83,
(malloc: Abort on heap corruption, without a backtrace), the function
always returns 0.

(cherry-picked from 5129873a8e913e207e5f7b4b521c72f41a1bbf6d)
Diffstat (limited to 'malloc/malloc.c')
-rw-r--r--malloc/malloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/malloc/malloc.c b/malloc/malloc.c
index 65deb2f386..417ffbba5f 100644
--- a/malloc/malloc.c
+++ b/malloc/malloc.c
@@ -1022,7 +1022,7 @@ static void*  _mid_memalign(size_t, size_t, void *);
 static void malloc_printerr(const char *str) __attribute__ ((noreturn));
 
 static void* internal_function mem2mem_check(void *p, size_t sz);
-static int internal_function top_check(void);
+static void top_check (void);
 static void internal_function munmap_chunk(mchunkptr p);
 #if HAVE_MREMAP
 static mchunkptr internal_function mremap_chunk(mchunkptr p, size_t new_size);