chiark / gitweb /
Fix format string pedantry to build on 64-bit Linux
authorRichard Kettlewell <rjk@greenend.org.uk>
Tue, 30 Dec 2008 12:16:15 +0000 (12:16 +0000)
committerRichard Kettlewell <rjk@greenend.org.uk>
Tue, 30 Dec 2008 12:16:15 +0000 (12:16 +0000)
CHANGES.html
server/speaker-network.c

index 62c908b4cc84dd387205a90c87a2984616164bed..98149aa7488bc53e2cef643687db7263c329844c 100644 (file)
@@ -105,6 +105,8 @@ span.command {
         <p>The build system will now automatically cope with Fink's broken GTK+
         packages.</p>
 
+        <p>DisOrder now builds on 64-bit Linux systems.</p>
+
         <p>There are some minor fixes to the test suite.</p>
 
       </div>
index 409cbea0d3a9814040d2d52833087c6ccbafaa72..e8a7190413dc914f90fabaf6ceb64c590375518c 100644 (file)
@@ -202,7 +202,7 @@ static size_t network_play(size_t frames) {
     /* Find the number of microseconds elapsed since rtp_time=0 */
     delta = tvsub_us(now, rtp_time_0);
     if(delta > UINT64_MAX / 88200)
-      fatal(0, "rtp_time=%llu now=%ld.%06ld rtp_time_0=%ld.%06ld delta=%llu (%lld)",
+      fatal(0, "rtp_time=%"PRIu64" now=%ld.%06ld rtp_time_0=%ld.%06ld delta=%"PRIu64" (%"PRId64")",
             rtp_time,
             (long)now.tv_sec, (long)now.tv_usec,
             (long)rtp_time_0.tv_sec, (long)rtp_time_0.tv_usec,
@@ -302,7 +302,7 @@ static void network_beforepoll(int *timeoutp) {
   xgettimeofday(&now, 0);
   target_us = tvsub_us(now, rtp_time_0);
   if(target_us > UINT64_MAX / 88200)
-    fatal(0, "rtp_time=%llu rtp_time_0=%ld.%06ld now=%ld.%06ld target_us=%llu (%lld)\n",
+    fatal(0, "rtp_time=%"PRIu64" rtp_time_0=%ld.%06ld now=%ld.%06ld target_us=%"PRIu64" (%"PRId64")\n",
           rtp_time,
           (long)rtp_time_0.tv_sec, (long)rtp_time_0.tv_usec,
           (long)now.tv_sec, (long)now.tv_usec,