Browse Source

get rid of needless c99 construct

Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
Austin Foxley 14 years ago
parent
commit
6306cfe171
1 changed files with 2 additions and 2 deletions
  1. 2 2
      ldso/ldso/dl-tls.c

+ 2 - 2
ldso/ldso/dl-tls.c

@@ -317,9 +317,9 @@ _dl_determine_tlsoffset (void)
 
 
 # ifdef TLS_TCB_AT_TP
 # ifdef TLS_TCB_AT_TP
   /* We simply start with zero.  */
   /* We simply start with zero.  */
-  size_t offset = 0;
+  size_t cnt, offset = 0;
 
 
-  for (size_t cnt = 1; slotinfo[cnt].map != NULL; ++cnt)
+  for (cnt = 1; slotinfo[cnt].map != NULL; ++cnt)
     {
     {
       _dl_assert (cnt < _dl_tls_dtv_slotinfo_list->len);
       _dl_assert (cnt < _dl_tls_dtv_slotinfo_list->len);