summaryrefslogtreecommitdiff
path: root/tests/headerless_test.c
diff options
context:
space:
mode:
authorErik de Castro Lopo <erikd@mega-nerd.com>2012-02-18 12:59:32 +1100
committerErik de Castro Lopo <erikd@mega-nerd.com>2012-02-18 12:59:32 +1100
commit518e3be6ef5c6d80b9e7657f36f90d56387653cf (patch)
treeb2495ce5db52e212dacad8b78448182798993025 /tests/headerless_test.c
parentf4da909c5dda25a62a2136599218062ce8114a3f (diff)
tests/ : Fix all printf format warnings.
Diffstat (limited to 'tests/headerless_test.c')
-rw-r--r--tests/headerless_test.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/headerless_test.c b/tests/headerless_test.c
index 6203589..6d3e2f2 100644
--- a/tests/headerless_test.c
+++ b/tests/headerless_test.c
@@ -1,5 +1,5 @@
/*
-** Copyright (C) 1999-2011 Erik de Castro Lopo <erikd@mega-nerd.com>
+** Copyright (C) 1999-2012 Erik de Castro Lopo <erikd@mega-nerd.com>
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
@@ -22,6 +22,7 @@
#include <stdlib.h>
#include <string.h>
#include <math.h>
+#include <inttypes.h>
#if HAVE_UNISTD_H
#include <unistd.h>
@@ -93,7 +94,7 @@ headerless_test (const char * filename, int format, int expected)
} ;
if (sfinfo.frames < BUFFER_SIZE)
- { printf ("Line %d: Incorrect number of.frames in file. (%d => %ld)\n", __LINE__, BUFFER_SIZE, SF_COUNT_TO_LONG (sfinfo.frames)) ;
+ { printf ("Line %d: Incorrect number of.frames in file. (%d => %" PRId64 ")\n", __LINE__, BUFFER_SIZE, sfinfo.frames) ;
exit (1) ;
} ;
@@ -154,7 +155,7 @@ old_test (void)
} ;
if (sfinfo.frames < BUFFER_SIZE)
- { printf ("Line %d: Incorrect number of.frames in file. (%d => %ld)\n", __LINE__, BUFFER_SIZE, SF_COUNT_TO_LONG (sfinfo.frames)) ;
+ { printf ("Line %d: Incorrect number of.frames in file. (%d => %" PRId64 ")\n", __LINE__, BUFFER_SIZE, sfinfo.frames) ;
exit (1) ;
} ;