]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
fix for 64bit time_t on 32bit systems
authorpykpkg47 <118465017+pykpkg47@users.noreply.github.com>
Sun, 5 Mar 2023 02:43:18 +0000 (02:43 +0000)
committerFlole998 <Flole998@users.noreply.github.com>
Wed, 8 Mar 2023 02:13:09 +0000 (03:13 +0100)
src/epggrab/otamux.c
src/tvheadend.h

index 4888158bab7e087aef7e8f1624934fe48b62ae37..6078cd73565de7e94c34b673e70a01453552d418 100644 (file)
@@ -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);
 }
index 8a7965235d5489dfd94689f647d2fad3f80a9f8a..79fe55e25eb78116bd564968325611b39a67f922 100644 (file)
@@ -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 */