Browse Source

wwviaudio: Use correct C99 format specifiers for uint64_t

This fixes a warning.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
David Gibson 9 years ago
parent
commit
2d17aeeecc
1 changed files with 3 additions and 2 deletions
  1. 3 2
      ccan/wwviaudio/wwviaudio.c

+ 3 - 2
ccan/wwviaudio/wwviaudio.c

@@ -29,6 +29,7 @@
 #include <unistd.h>
 #include <unistd.h>
 #include <string.h>
 #include <string.h>
 #include <stdlib.h>
 #include <stdlib.h>
+#include <inttypes.h>
 
 
 #define WWVIAUDIO_DEFINE_GLOBALS
 #define WWVIAUDIO_DEFINE_GLOBALS
 #include "wwviaudio.h"
 #include "wwviaudio.h"
@@ -147,8 +148,8 @@ int wwviaudio_read_ogg_clip(int clipnum, char *filename)
 	rc = ogg_to_pcm(filebuf, &clip[clipnum].sample, &samplesize,
 	rc = ogg_to_pcm(filebuf, &clip[clipnum].sample, &samplesize,
 		&sample_rate, &nchannels, &nframes);
 		&sample_rate, &nchannels, &nframes);
 	if (clip[clipnum].sample == NULL) {
 	if (clip[clipnum].sample == NULL) {
-		printf("Can't get memory for sound data for %llu frames in %s\n",
-			nframes, filebuf);
+		printf("Can't get memory for sound data for %"PRIu64
+		       " frames in %s\n", nframes, filebuf);
 		goto error;
 		goto error;
 	}
 	}