summaryrefslogtreecommitdiff
path: root/libpthread/nptl/allocatestack.c
diff options
context:
space:
mode:
authorMirko Vogt <dev@nanl.de>2010-06-21 20:23:14 +0200
committerAustin Foxley <austinf@cetoncorp.com>2010-06-21 11:28:07 -0700
commitef487a35f428da6240003dca23b9d29908e2285e (patch)
treed6c73a4f831fc6ca26dfd7fef2a60041e3cd54ff /libpthread/nptl/allocatestack.c
parent6306cfe1713ad02c9c3d4b7940191bc95d27b14f (diff)
avoid using c99 syntax
Signed-off-by: Mirko Vogt <dev@nanl.de> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
Diffstat (limited to 'libpthread/nptl/allocatestack.c')
-rw-r--r--libpthread/nptl/allocatestack.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libpthread/nptl/allocatestack.c b/libpthread/nptl/allocatestack.c
index 7d4f9fd1c..9ffa7e7e2 100644
--- a/libpthread/nptl/allocatestack.c
+++ b/libpthread/nptl/allocatestack.c
@@ -844,7 +844,8 @@ __reclaim_stacks (void)
curp->specific_used = false;
- for (size_t cnt = 1; cnt < PTHREAD_KEY_1STLEVEL_SIZE; ++cnt)
+ size_t cnt;
+ for (cnt = 1; cnt < PTHREAD_KEY_1STLEVEL_SIZE; ++cnt)
if (curp->specific[cnt] != NULL)
{
memset (curp->specific[cnt], '\0',