From 518e3be6ef5c6d80b9e7657f36f90d56387653cf Mon Sep 17 00:00:00 2001 From: Erik de Castro Lopo Date: Sat, 18 Feb 2012 12:59:32 +1100 Subject: tests/ : Fix all printf format warnings. --- tests/headerless_test.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'tests/headerless_test.c') 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 +** Copyright (C) 1999-2012 Erik de Castro Lopo ** ** 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 #include #include +#include #if HAVE_UNISTD_H #include @@ -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) ; } ; -- cgit v1.2.3