]> Creatis software - gdcm.git/blobdiff - src/jdatasrc.cxx
STYLE: Remove old comments
[gdcm.git] / src / jdatasrc.cxx
index a7c0a368681f556e3cf0ed6f44c2bec3b31964fe..53717cd5006b1ae246d6cc8b4b8576be511c1ffb 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * jdatasrc.c
+ * jdatasrc.cxx
  *
  * Copyright (C) 1994-1996, Thomas G. Lane.
  * This file is part of the Independent JPEG Group's software.
@@ -19,7 +19,7 @@
 /* Expanded data source object for stdio input */
 
 extern "C" {
-  typedef  int(*int_jpeg_decompress_struct)(jpeg_decompress_struct*);
+  typedef  boolean(*boolean_jpeg_decompress_struct)(jpeg_decompress_struct*);
   typedef  void(*void_jpeg_decompress_struct)(jpeg_decompress_struct*);
   typedef  void(*void_jpeg_decompress_struct_long)(jpeg_decompress_struct*,long);
 }
@@ -221,7 +221,7 @@ jpeg_stdio_src (j_decompress_ptr cinfo, std::ifstream * infile, gdcm::JPEGFragme
 
   src = (my_src_ptr) cinfo->src;
   src->pub.init_source = reinterpret_cast<void_jpeg_decompress_struct>(init_source);
-  src->pub.fill_input_buffer = reinterpret_cast<int_jpeg_decompress_struct>(fill_input_buffer);
+  src->pub.fill_input_buffer = reinterpret_cast<boolean_jpeg_decompress_struct>(fill_input_buffer);
   src->pub.skip_input_data = reinterpret_cast<void_jpeg_decompress_struct_long>(skip_input_data);
   src->pub.resync_to_restart = jpeg_resync_to_restart; /* use default method */
   src->pub.term_source = reinterpret_cast<void_jpeg_decompress_struct>(term_source);