]> Creatis software - gdcm.git/blobdiff - src/gdcmjpegls/Decoder/global.c
Remove extra ';'
[gdcm.git] / src / gdcmjpegls / Decoder / global.c
index 23105739183f27bb6331cfe22e3125564d8cc088..5ec5c37d8f0f6bb92c9836e694edf073a2343760 100644 (file)
@@ -60,7 +60,7 @@
 
 
 
 
 
 
-char *disclaimer = "\
+char disclaimer[] = "\
 This program is Copyright (c) University of British Columbia.\n\
 All rights reserved. It may be freely redistributed in its\n\
 entirety provided that this copyright notice is not removed.\n\
 This program is Copyright (c) University of British Columbia.\n\
 All rights reserved. It may be freely redistributed in its\n\
 entirety provided that this copyright notice is not removed.\n\
@@ -74,7 +74,7 @@ without the written permission of the copyright holder.\n\
 FILE *in, *out;
 FILE *c_in[MAX_COMPONENTS];
 FILE *c_out[MAX_COMPONENTS];
 FILE *in, *out;
 FILE *c_in[MAX_COMPONENTS];
 FILE *c_out[MAX_COMPONENTS];
-FILE *msgfile = NULL; // = stdout;
+FILE *msgfile = NULL; /* = stdout;*/
 
 /* Context quantization thresholds  - initially unset */
 int     T3 = -1,
 
 /* Context quantization thresholds  - initially unset */
 int     T3 = -1,
@@ -103,14 +103,10 @@ int bpp,    /* bits per sample */
     limit_reduce;  /* reduction on above for EOR states */
 
 
     limit_reduce;  /* reduction on above for EOR states */
 
 
-/* define color mode strings */
-char *plane_int_string = "plane by plane",
-   *line_int_string = "line intlv",
-   *pixel_int_string = "sample intlv";
 
 
 /* function to print out error messages */
 
 
 /* function to print out error messages */
-void error(char *msg) {
+void error(const char *msg) {
   fprintf(stderr, msg);
   exit(-1);
 }
   fprintf(stderr, msg);
   exit(-1);
 }
@@ -145,8 +141,8 @@ void *safecalloc(size_t numels, size_t size) {
 
 double get_utime()
 {
 
 double get_utime()
 {
-  clock_t c;
-  (void)c;
+  /*clock_t c;
+  (void)c;*/
 
   return (double)clock()/CLOCKS_PER_SEC;
 }
 
   return (double)clock()/CLOCKS_PER_SEC;
 }
@@ -326,14 +322,14 @@ void check_compatibility(jpeg_ls_header *head_frame, jpeg_ls_header *head_scan,
 
 /* for writing disclaimer to command line in DOS */
 
 
 /* for writing disclaimer to command line in DOS */
 
-char *ttyfilename = "CON";
+char ttyfilename[] = "CON";
 
 #define PAUSE  20
 
 void fprint_disclaimer(FILE *fp, int nopause)
 {
   char *p0, *p1;
 
 #define PAUSE  20
 
 void fprint_disclaimer(FILE *fp, int nopause)
 {
   char *p0, *p1;
-  FILE *ttyf;
+  FILE *ttyf = NULL;
   int  i; /*, c;*/
 
   nopause = nopause | !isatty(fileno(fp));
   int  i; /*, c;*/
 
   nopause = nopause | !isatty(fileno(fp));