summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMathieu Malaterre <mathieu.malaterre@gmail.com>2012-11-08 16:45:27 +0000
committerMathieu Malaterre <mathieu.malaterre@gmail.com>2012-11-08 16:45:27 +0000
commite71749428c9bd2f8561993d16b28a71d49d4cd2e (patch)
tree827bee1d18555da0ac54ee58b7eacff9eb5f468e /tests
parent8f58b776b0519b8ce3527ceb5a3bf00d3bf0df93 (diff)
[trunk] Fix what looks like a copy/paste error
Update issue 186
Diffstat (limited to 'tests')
-rw-r--r--tests/j2k_random_tile_access.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/j2k_random_tile_access.c b/tests/j2k_random_tile_access.c
index add16a31..f87c36ea 100644
--- a/tests/j2k_random_tile_access.c
+++ b/tests/j2k_random_tile_access.c
@@ -73,15 +73,15 @@ static int get_file_format(const char *filename) {
sample error callback expecting a FILE* client object
*/
static void error_callback(const char *msg, void *client_data) {
- FILE *stream = (FILE*)client_data;
- fprintf(stream, "[ERROR] %s", msg);
+ (void)client_data;
+ fprintf(stdout, "[ERROR] %s", msg);
}
/**
sample warning callback expecting a FILE* client object
*/
static void warning_callback(const char *msg, void *client_data) {
- FILE *stream = (FILE*)client_data;
- fprintf(stream, "[WARNING] %s", msg);
+ (void)client_data;
+ fprintf(stdout, "[WARNING] %s", msg);
}
/**
sample debug callback expecting no client object