From ef487a35f428da6240003dca23b9d29908e2285e Mon Sep 17 00:00:00 2001 From: Mirko Vogt Date: Mon, 21 Jun 2010 20:23:14 +0200 Subject: avoid using c99 syntax Signed-off-by: Mirko Vogt Signed-off-by: Austin Foxley --- libpthread/nptl/pthread_key_create.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libpthread/nptl/pthread_key_create.c') diff --git a/libpthread/nptl/pthread_key_create.c b/libpthread/nptl/pthread_key_create.c index d3c1d2662..be32517ec 100644 --- a/libpthread/nptl/pthread_key_create.c +++ b/libpthread/nptl/pthread_key_create.c @@ -29,7 +29,8 @@ __pthread_key_create ( void (*destr) (void *)) { /* Find a slot in __pthread_kyes which is unused. */ - for (size_t cnt = 0; cnt < PTHREAD_KEYS_MAX; ++cnt) + size_t cnt; + for (cnt = 0; cnt < PTHREAD_KEYS_MAX; ++cnt) { uintptr_t seq = __pthread_keys[cnt].seq; -- cgit v1.2.3