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
committerFlorian Weimer <fweimer@redhat.com>2017-08-31 14:16:52 +0200
commit5129873a8e913e207e5f7b4b521c72f41a1bbf6d (patch)
tree51cab5e63cd99d48770061144242b6bbbcd6d813 /malloc/malloc.c
parent8715f256302cab595eaf9589b3f4341f1dab020d (diff)
downloadglibc-5129873a8e913e207e5f7b4b521c72f41a1bbf6d.tar.gz
glibc-5129873a8e913e207e5f7b4b521c72f41a1bbf6d.tar.xz
glibc-5129873a8e913e207e5f7b4b521c72f41a1bbf6d.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.
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 65bbf02cb7..768670ccf6 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);