[LTP] [PATCH] sched_stress: Use time_t instead of long for type

Petr Vorel pvorel@suse.cz
Mon May 6 23:00:10 CEST 2024


Hi Khem,

> This ensures it works across different architectures
> Fixes

> | sched_driver.c:744:43: error: passing argument 1 of 'ctime' from incompatible pointer type [-Wincompatible-pointer-types]
> |   744 |         printf("\nend time = %s\n", ctime(&end_time));
> |       |                                           ^~~~~~~~~

> With gcc-14

This was actually problem on musl, right?

Anyway, thanks for the fix, merged.

Kind regards,
Petr


More information about the ltp mailing list