Skip to content

treewide: Fix compilation with 64-bit time_t

Andreas Gnau requested to merge agnau-64bit-time_t into devel

Fix compilation with 64-bit time_t introduced in musl 1.2.0. https://musl.libc.org/time64.html

  • libbbf_api/dmubus.c:133:79: error: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'time_t' {aka 'long long int'} [-Werror=format=]

  • libbbf_api/dmubus.c:133:84: error: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'time_t' {aka 'long long int'} [-Werror=format=]

  • dmtree/tr181/dynamicdns.c:68:55: error: format '%ld' expects argument of type 'long int', but argument 4 has type 'time_t' {aka 'long long int'} [-Werror=format=]

Edited by Andreas Gnau

Merge request reports