Message ID | 20240819174814.139344-3-pZ010001011111@proton.me |
---|---|
State | Accepted |
Commit | 99338cc1e47187c3efdd39cda2a31500d0f2305d |
Headers | show |
Series | kselftest: timers: Fix const correctness | expand |
diff --git a/tools/testing/selftests/timers/threadtest.c b/tools/testing/selftests/timers/threadtest.c index 76b38e41d9c7..d5564bbf0e50 100644 --- a/tools/testing/selftests/timers/threadtest.c +++ b/tools/testing/selftests/timers/threadtest.c @@ -38,10 +38,10 @@ struct timespec global_list[LISTSIZE]; int listcount = 0; -void checklist(struct timespec *list, int size) +void checklist(const struct timespec *list, int size) { int i, j; - struct timespec *a, *b; + const struct timespec *a, *b; /* scan the list */ for (i = 0; i < size-1; i++) {