[LTP] [PATCH] sched_stress: Use time_t instead of long for type
Khem Raj
raj.khem@gmail.com
Tue May 7 01:15:14 CEST 2024
On Mon, May 6, 2024 at 2:00 PM Petr Vorel <pvorel@suse.cz> wrote:
> 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?
This is with 32 bit x86 using 64bit time_r this time :) we have umpteen
ways to build systems with yocto
>
>
> Anyway, thanks for the fix, merged.
>
> Kind regards,
> Petr
>
More information about the ltp
mailing list