[trunk] Fix what looks like a copy/paste error
[openjpeg.git] / tests / j2k_random_tile_access.c
index add16a31c0fdb4d6e4eb13bf1ba9af0612049590..f87c36ea088b2434caa9deb3a061b45492e2bbfb 100644 (file)
@@ -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