From: Mathieu Malaterre Date: Thu, 8 Nov 2012 16:45:27 +0000 (+0000) Subject: [trunk] Fix what looks like a copy/paste error X-Git-Tag: version.2.0~39 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e71749428c9bd2f8561993d16b28a71d49d4cd2e;p=openjpeg [trunk] Fix what looks like a copy/paste error Update issue 186 --- 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