[LTP] [PATCH v2] syscalls/timer_getoverrun01: use kernel_timer_t type
Petr Vorel
pvorel@suse.cz
Fri Mar 22 06:11:32 CET 2024
Hi Jan,
...
> +++ b/testcases/kernel/syscalls/timer_getoverrun/timer_getoverrun01.c
> @@ -19,10 +19,11 @@
> #include <time.h>
> #include "tst_safe_clocks.h"
> #include "lapi/syscalls.h"
> +#include "lapi/common_timers.h"
> static void run(void)
> {
> - timer_t timer;
> + kernel_timer_t timer;
Good catch.
Reviewed-by: Petr Vorel <pvorel@suse.cz>
BTW in v1 you used memset(&timer, 0, sizeof(timer_t));
Could have we used with current compilers just timer_t timer = {} instead of
memset()? Or what is the reason we keep using memset() instead of {}?
Kind regards,
Petr
More information about the ltp
mailing list