aboutsummaryrefslogtreecommitdiff
path: root/malloc
diff options
context:
space:
mode:
Diffstat (limited to 'malloc')
-rw-r--r--malloc/Makefile4
-rw-r--r--malloc/mcheck.c4
-rw-r--r--malloc/mtrace.c4
-rw-r--r--malloc/set-freeres.c4
4 files changed, 8 insertions, 8 deletions
diff --git a/malloc/Makefile b/malloc/Makefile
index 53251ba..9fd4e2c 100644
--- a/malloc/Makefile
+++ b/malloc/Makefile
@@ -1,4 +1,4 @@
-# Copyright (C) 1991, 92, 93, 94, 95, 96, 97, 98 Free Software Foundation, Inc.
+# Copyright (C) 1991,92,93,94,95,96,97,98,99 Free Software Foundation, Inc.
# This file is part of the GNU C Library.
# The GNU C Library is free software; you can redistribute it and/or
@@ -27,7 +27,7 @@ dist-headers := malloc.h
headers := $(dist-headers) obstack.h mcheck.h
tests := mallocbug
-distribute = thread-m.h mtrace.pl mcheck-init.c
+distribute = thread-m.h mtrace.pl mcheck-init.c stackinfo.h
# Things which get pasted together into gmalloc.c.
gmalloc-routines := malloc morecore
diff --git a/malloc/mcheck.c b/malloc/mcheck.c
index c5baa3d..53575a7 100644
--- a/malloc/mcheck.c
+++ b/malloc/mcheck.c
@@ -1,5 +1,5 @@
/* Standard debugging hooks for `malloc'.
- Copyright (C) 1990,91,92,93,94,95,96,97 Free Software Foundation, Inc.
+ Copyright (C) 1990,91,92,93,94,95,96,97,99 Free Software Foundation, Inc.
Written May 1989 by Mike Haertel.
This library is free software; you can redistribute it and/or
@@ -220,7 +220,7 @@ mabort (status)
#endif
}
-static int mcheck_used = 0;
+static int mcheck_used;
int
mcheck (func)
diff --git a/malloc/mtrace.c b/malloc/mtrace.c
index d15569c..6af064c 100644
--- a/malloc/mtrace.c
+++ b/malloc/mtrace.c
@@ -1,5 +1,5 @@
/* More debugging hooks for `malloc'.
- Copyright (C) 1991, 92, 93, 94, 96, 97, 98 Free Software Foundation, Inc.
+ Copyright (C) 1991,92,93,94,96,97,98,99 Free Software Foundation, Inc.
Written April 2, 1991 by John Gilmore of Cygnus Support.
Based on mcheck.c by Mike Haertel.
@@ -243,7 +243,7 @@ void
mtrace ()
{
#ifdef _LIBC
- static int added_atexit_handler = 0;
+ static int added_atexit_handler;
#endif
char *mallfile;
diff --git a/malloc/set-freeres.c b/malloc/set-freeres.c
index 7efd06e..e73da87 100644
--- a/malloc/set-freeres.c
+++ b/malloc/set-freeres.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1997, 1999 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -26,7 +26,7 @@ __libc_freeres (void)
{
/* This function might be called from different places. So better
protect for multiple executions since these are fatal. */
- static int already_called = 0;
+ static int already_called;
if (!already_called)
RUN_HOOK (__libc_subfreeres, ());