]> Creatis software - gdcm.git/commitdiff
%d vs %i in fprintf for unsigned int, to avoid warnings (hope so)
authorjpr <jpr>
Tue, 20 Sep 2005 10:01:49 +0000 (10:01 +0000)
committerjpr <jpr>
Tue, 20 Sep 2005 10:01:49 +0000 (10:01 +0000)
src/gdcmjpegls/Decoder/decoder.c

index b193724ec8206a8538dabc3580757042fab04c3d..f62f14067fc98470b2ca73a407e413bbfe836af5 100644 (file)
 #include <string.h>
 #include "jpegmark.h"
 
+
+void usage();
+
+
 #define  PGMNAME PGMPREFIX "d"
 #define  EPGMNAME PGMPREFIX "e"
 
@@ -105,8 +109,6 @@ int bpp16;            /* Indicates if 16 bits per pixel mode or not */
 int lutmax;            /* lutmax is either 256 or 4501 */
 
 
-
-
 /* reset */
 #ifndef FIXRESET
 int  RESET;
@@ -124,9 +126,6 @@ int     highmask;
 #endif
 
 
-void usage();
-
-
 
 
 /* Write one row of pixel values */
@@ -1450,7 +1449,7 @@ int main (int argc, char *argv[]) {
   }
 
   if (head_scan[0]->need_table)
-    fprintf(msgfile,"A mapping table was used which had %i entries of %i bytes each.\n",head_scan[0]->MAXTAB, head_scan[0]->Wt);
+    fprintf(msgfile,"A mapping table was used which had %d entries of %g bytes each.\n",head_scan[0]->MAXTAB, head_scan[0]->Wt);
 
   if (got_restart)
     fprintf(msgfile,"Restart markers were found with a restart interval of %i.\n",restart_interval);