Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
clockdiff: Fix print time_t problem on 32 bits musl
Similarly to 0fd2db7 this fixes warning on 32 bit musl 1.2.0, which changed time_t as 64-bit across all archs [1]. This fixes warning: ../clockdiff.c:626:35: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'time_t' {aka 'long long int'} [-Wformat=] 626 | printf("%ld %d %d\n", now, ctl.measure_delta, ctl.measure_delta1); | ~~^ ~~~ | | | | long int time_t {aka long long int} | %lld [1] https://musl.libc.org/time64.html Reviewed-by: Cyril Hrubis <chrubis@suse.cz> Signed-off-by: Petr Vorel <pvorel@suse.cz>
- Loading branch information