aboutsummaryrefslogtreecommitdiff
path: root/malloc/hooks.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-02-07 05:30:48 +0000
committerRoland McGrath <roland@gnu.org>2002-02-07 05:30:48 +0000
commita9177ff526dafcb033d8fb592212b83a52934575 (patch)
treeab9c1ce47b0354f80c218d77b47b63ff03ffe487 /malloc/hooks.c
parent48a5e01019cd75b1a9f01773d583e0f0f923aa42 (diff)
downloadglibc-a9177ff526dafcb033d8fb592212b83a52934575.tar
glibc-a9177ff526dafcb033d8fb592212b83a52934575.tar.gz
glibc-a9177ff526dafcb033d8fb592212b83a52934575.tar.bz2
glibc-a9177ff526dafcb033d8fb592212b83a52934575.zip
* malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
* malloc/malloc.c [! HAVE_MREMAP]: Likewise.
Diffstat (limited to 'malloc/hooks.c')
-rw-r--r--malloc/hooks.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/malloc/hooks.c b/malloc/hooks.c
index 28629eff80..e288b9c05d 100644
--- a/malloc/hooks.c
+++ b/malloc/hooks.c
@@ -1,5 +1,5 @@
/* Malloc implementation for multiple threads without lock contention.
- Copyright (C) 2001 Free Software Foundation, Inc.
+ Copyright (C) 2001,02 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Wolfram Gloger <wg@malloc.de>, 2001.
@@ -322,7 +322,7 @@ realloc_check(oldmem, bytes, caller)
Void_t* oldmem; size_t bytes; const Void_t *caller;
#endif
{
- mchunkptr oldp, newp = 0;
+ mchunkptr oldp;
INTERNAL_SIZE_T nb, oldsize;
Void_t* newmem = 0;
@@ -345,7 +345,7 @@ realloc_check(oldmem, bytes, caller)
#if HAVE_MMAP
if (chunk_is_mmapped(oldp)) {
#if HAVE_MREMAP
- newp = mremap_chunk(oldp, nb);
+ mchunkptr newp = mremap_chunk(oldp, nb);
if(!newp) {
#endif
/* Note the extra SIZE_SZ overhead. */