summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2009-09-30 05:12:35 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2009-09-30 05:12:35 +0000
commitdfa6882c5be1f2a5e608cfd6b2ab1b128ee4f525 (patch)
tree33f991b51a3c3d90b1d7298571fde4933fad57d8 /cpukit
parent2009-09-30 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-dfa6882c5be1f2a5e608cfd6b2ab1b128ee4f525.tar.bz2
Comment out checkMallocArena (unused).
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/libcsupport/src/malloc_boundary.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/cpukit/libcsupport/src/malloc_boundary.c b/cpukit/libcsupport/src/malloc_boundary.c
index 3a90cf15ee..a48f4b613d 100644
--- a/cpukit/libcsupport/src/malloc_boundary.c
+++ b/cpukit/libcsupport/src/malloc_boundary.c
@@ -75,7 +75,8 @@ static void rtems_malloc_boundary_at_malloc(
{
void *return_this;
struct mallocNode *mp = (struct mallocNode *)pointer;
- int *fp, *nfp, i;
+ int *fp, *nfp;
+ int i;
_RTEMS_Lock_allocator();
mp->memory = mp + 1;
@@ -85,7 +86,7 @@ static void rtems_malloc_boundary_at_malloc(
for (i = 0 ; i < CALLCHAINSIZE ; i++) {
mp->callChain[i] = fp[1];
nfp = (int *)(fp[0]);
- if((nfp <= fp) || (nfp > (int *)(1 << 24)))
+ if((nfp <= fp) || (nfp > (int *)((intptr_t)1 << 24)))
break;
fp = nfp;
}
@@ -178,6 +179,7 @@ static void reportMallocError(const char *msg, struct mallocNode *mp)
printk("\n\n%s\n\n", cbuf);
}
+#if UNUSED
static void checkMallocArena(void)
{
struct mallocNode *mp;
@@ -192,6 +194,7 @@ static void checkMallocArena(void)
}
_RTEMS_Unlock_allocator();
}
+#endif
#endif
#endif