diff options
| author | Jörg Frings-Fürst <debian@jff.email> | 2026-03-08 17:29:05 +0100 |
|---|---|---|
| committer | Jörg Frings-Fürst <debian@jff.email> | 2026-03-08 17:29:05 +0100 |
| commit | 33a5320dda21ae791eee4763c64f1285ae04217d (patch) | |
| tree | 5c15bc695be820b393a8496c5807ecafbbdeb89b /tests/windows-tls.c | |
| parent | b2ac982cc8b5290699eb5f52fb043d3d15e2624b (diff) | |
| parent | ff33e1d252f46bec1a33e28700da3282fc24047a (diff) | |
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'tests/windows-tls.c')
| -rw-r--r-- | tests/windows-tls.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/tests/windows-tls.c b/tests/windows-tls.c index 00852433..190b0c99 100644 --- a/tests/windows-tls.c +++ b/tests/windows-tls.c @@ -1,5 +1,5 @@ /* Thread-local storage (native Windows implementation). - Copyright (C) 2005-2025 Free Software Foundation, Inc. + Copyright (C) 2005-2026 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as @@ -128,8 +128,6 @@ dtor_table_shrink_used (void) void glwthread_tls_process_destructors (void) { - unsigned int repeat; - dtor_table_ensure_initialized (); EnterCriticalSection (&dtor_table_lock); @@ -141,7 +139,7 @@ glwthread_tls_process_destructors (void) } dtor_processing_threads++; - for (repeat = GLWTHREAD_DESTRUCTOR_ITERATIONS; repeat > 0; repeat--) + for (unsigned int repeat = GLWTHREAD_DESTRUCTOR_ITERATIONS; repeat > 0; repeat--) { unsigned int destructors_run = 0; @@ -157,9 +155,8 @@ glwthread_tls_process_destructors (void) entry as inactive, but it will not otherwise change dtors_used nor the contents of the first dtors_used entries of dtor_table. */ unsigned int i_limit = dtors_used; - unsigned int i; - for (i = 0; i < i_limit; i++) + for (unsigned int i = 0; i < i_limit; i++) { struct dtor current = dtor_table[i]; if (current.destructor != NULL) @@ -299,9 +296,8 @@ glwthread_tls_key_delete (glwthread_tls_key_t key) /* Find the key in dtor_table. */ { unsigned int i_limit = dtors_used; - unsigned int i; - for (i = 0; i < i_limit; i++) + for (unsigned int i = 0; i < i_limit; i++) if (dtor_table[i].key == key) { if (i < dtors_used - 1) @@ -317,9 +313,8 @@ glwthread_tls_key_delete (glwthread_tls_key_t key) /* Be careful not to disturb the glwthread_tls_process_destructors invocations that are executing in other threads. */ unsigned int i_limit = dtors_used; - unsigned int i; - for (i = 0; i < i_limit; i++) + for (unsigned int i = 0; i < i_limit; i++) if (dtor_table[i].destructor != NULL /* skip inactive entries */ && dtor_table[i].key == key) { |
