aboutsummaryrefslogtreecommitdiff
path: root/malloc
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2013-06-08 00:22:23 +0000
committerJoseph Myers <joseph@codesourcery.com>2013-06-08 00:22:23 +0000
commit60d2f8f3c7f1cdacafcbd60dc004e32cc90035ca (patch)
tree29d9258b64874c6c9838757a9c67ef62a6a0868c /malloc
parent2e09a79ada1f6d92809a037d41895e3d9302ad59 (diff)
downloadglibc-60d2f8f3c7f1cdacafcbd60dc004e32cc90035ca.tar
glibc-60d2f8f3c7f1cdacafcbd60dc004e32cc90035ca.tar.gz
glibc-60d2f8f3c7f1cdacafcbd60dc004e32cc90035ca.tar.bz2
glibc-60d2f8f3c7f1cdacafcbd60dc004e32cc90035ca.zip
Use (void) in no-arguments function definitions.
Diffstat (limited to 'malloc')
-rw-r--r--malloc/hooks.c2
-rw-r--r--malloc/malloc.c2
-rw-r--r--malloc/mtrace.c6
3 files changed, 5 insertions, 5 deletions
diff --git a/malloc/hooks.c b/malloc/hooks.c
index 8e4a6ed033..8c25846330 100644
--- a/malloc/hooks.c
+++ b/malloc/hooks.c
@@ -69,7 +69,7 @@ static int disallow_malloc_check;
/* Activate a standard set of debugging hooks. */
void
-__malloc_check_init()
+__malloc_check_init (void)
{
if (disallow_malloc_check) {
disallow_malloc_check = 0;
diff --git a/malloc/malloc.c b/malloc/malloc.c
index 70b9329cc3..be472b2ba3 100644
--- a/malloc/malloc.c
+++ b/malloc/malloc.c
@@ -4602,7 +4602,7 @@ struct mallinfo __libc_mallinfo()
*/
void
-__malloc_stats()
+__malloc_stats (void)
{
int i;
mstate ar_ptr;
diff --git a/malloc/mtrace.c b/malloc/mtrace.c
index 62867b1182..ee941333a8 100644
--- a/malloc/mtrace.c
+++ b/malloc/mtrace.c
@@ -72,7 +72,7 @@ static __ptr_t (*tr_old_memalign_hook) (size_t __alignment, size_t __size,
extern void tr_break (void) __THROW;
libc_hidden_proto (tr_break)
void
-tr_break ()
+tr_break (void)
{
}
libc_hidden_def (tr_break)
@@ -298,7 +298,7 @@ release_libc_mem (void)
don't forget to set a breakpoint on tr_break! */
void
-mtrace ()
+mtrace (void)
{
#ifdef _LIBC
static int added_atexit_handler;
@@ -363,7 +363,7 @@ mtrace ()
}
void
-muntrace ()
+muntrace (void)
{
if (mallstream == NULL)
return;