diff options
| author | Mark Stapp <mjs@voltanet.io> | 2020-11-03 17:07:08 -0500 |
|---|---|---|
| committer | Mark Stapp <mjs@voltanet.io> | 2020-11-04 16:56:17 -0500 |
| commit | 72327cf3e71886a280c57b208869e1ddce49b046 (patch) | |
| tree | 97b44b4e484e89d1e63bac718dce83aa67d4e33a /lib/thread.h | |
| parent | 7dcd8af02486b4447e838c0ae9ef6585736dda1e (diff) | |
* : clean up format specifiers for gcc-10
gcc 10 complains about some of our format specs, fix them. Use
atomic size_t in thread stats, to work around platform
differences.
Signed-off-by: Mark Stapp <mjs@voltanet.io>
Diffstat (limited to 'lib/thread.h')
| -rw-r--r-- | lib/thread.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/thread.h b/lib/thread.h index 682a17b9f3..eb1b107e7b 100644 --- a/lib/thread.h +++ b/lib/thread.h @@ -115,8 +115,8 @@ struct thread { struct cpu_thread_history { int (*func)(struct thread *); - atomic_uint_fast32_t total_calls; - atomic_uint_fast32_t total_active; + atomic_size_t total_calls; + atomic_size_t total_active; struct time_stats { atomic_size_t total, max; } real; |
