From: pykpkg47 <118465017+pykpkg47@users.noreply.github.com> Date: Sun, 5 Mar 2023 02:43:18 +0000 (+0000) Subject: fix for 64bit time_t on 32bit systems X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=76a6263f1be4;p=thirdparty%2Ftvheadend.git fix for 64bit time_t on 32bit systems --- diff --git a/src/epggrab/otamux.c b/src/epggrab/otamux.c index 4888158ba..6078cd735 100644 --- a/src/epggrab/otamux.c +++ b/src/epggrab/otamux.c @@ -723,7 +723,7 @@ epggrab_ota_start_cb ( void *p ); static void epggrab_ota_next_arm( time_t next ) { - tvhtrace(LS_EPGGRAB, "next ota start event in %li seconds", next - time(NULL)); + tvhtrace(LS_EPGGRAB, "next ota start event in %"PRId64" seconds", next - time(NULL)); gtimer_arm_absn(&epggrab_ota_start_timer, epggrab_ota_start_cb, NULL, next); dbus_emit_signal_s64("/epggrab/ota", "next", next); } diff --git a/src/tvheadend.h b/src/tvheadend.h index 8a7965235..79fe55e25 100644 --- a/src/tvheadend.h +++ b/src/tvheadend.h @@ -337,7 +337,7 @@ void tvh_qsort_r(void *base, size_t nmemb, size_t size, int (*compar)(const void #if __WORDSIZE == 32 && defined(PLATFORM_FREEBSD) #define PRItime_t "d" #else -#define PRItime_t "ld" +#define PRItime_t PRId64 #endif /* transcoding */