diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2022-02-15 10:03:36 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2022-02-21 12:39:57 +0300 |
commit | 9040f45a66e20464c0a8b6e12e3bcf1a4e35ec92 (patch) | |
tree | 1590067150ad54c8368abb15259acf4be9a977f2 | |
parent | b933c83e969dbf46f58f2cd286a929205d67b3cc (diff) | |
download | libatomic_ops-9040f45a66e20464c0a8b6e12e3bcf1a4e35ec92.tar.gz |
Fix code indentation in main of test_stack.c
(a cherry-pick of commit eef6823ee from 'master')
* tests/test_stack.c (main): Adjust indentation for ifdef VERBOSE
and for "for" statement (for statistic output).
-rw-r--r-- | tests/test_stack.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/test_stack.c b/tests/test_stack.c index efe59e1..6ae49df 100644 --- a/tests/test_stack.c +++ b/tests/test_stack.c @@ -301,17 +301,18 @@ int main(int argc, char **argv) } } times[nthreads][exper_n] = get_msecs() - start_time; - # ifdef VERBOSE +# ifdef VERBOSE printf("nthreads=%d, time_ms=%lu\n", nthreads, times[nthreads][exper_n]); printf("final list (should be reordered initial list):\n"); print_list(); - # endif +# endif check_list(list_length); while ((le = (list_element *)AO_stack_pop(&the_list)) != 0) free(le); } - for (nthreads = 1; nthreads <= max_nthreads; ++nthreads) + + for (nthreads = 1; nthreads <= max_nthreads; ++nthreads) { # ifndef NO_TIMES unsigned long sum = 0; |