summaryrefslogtreecommitdiff
path: root/tests/atomic-int-posix.h
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2026-03-08 17:29:05 +0100
committerJörg Frings-Fürst <debian@jff.email>2026-03-08 17:29:05 +0100
commit33a5320dda21ae791eee4763c64f1285ae04217d (patch)
tree5c15bc695be820b393a8496c5807ecafbbdeb89b /tests/atomic-int-posix.h
parentb2ac982cc8b5290699eb5f52fb043d3d15e2624b (diff)
parentff33e1d252f46bec1a33e28700da3282fc24047a (diff)
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'tests/atomic-int-posix.h')
-rw-r--r--tests/atomic-int-posix.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/atomic-int-posix.h b/tests/atomic-int-posix.h
index d573e60c..d6400801 100644
--- a/tests/atomic-int-posix.h
+++ b/tests/atomic-int-posix.h
@@ -1,5 +1,5 @@
/* Atomic integers. Useful for testing multithreaded locking primitives.
- Copyright (C) 2005, 2008-2025 Free Software Foundation, Inc.
+ Copyright (C) 2005, 2008-2026 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -87,8 +87,7 @@ static void
init_atomic_int (struct atomic_int *ai)
{
sem_t *s;
- unsigned int count;
- for (count = 0; ; count++)
+ for (unsigned int count = 0; ; count++)
{
char name[80];
/* Use getpid() in the name, so that different processes running at the