X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2Fgdcmjpegls%2FDecoder%2Fglobal.c;h=5ec5c37d8f0f6bb92c9836e694edf073a2343760;hb=1fc3acf03ceac386da14703e9017df3222e66b8e;hp=768a3ead7a4e3ec1148bc20bc8ff2f295e9c79f5;hpb=d9300e649f7b6e7c36abf062857f7f412c4c9999;p=gdcm.git diff --git a/src/gdcmjpegls/Decoder/global.c b/src/gdcmjpegls/Decoder/global.c index 768a3ead..5ec5c37d 100644 --- a/src/gdcmjpegls/Decoder/global.c +++ b/src/gdcmjpegls/Decoder/global.c @@ -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\ @@ -103,14 +103,10 @@ int bpp, /* bits per sample */ 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 */ -void error(char *msg) { +void error(const char *msg) { fprintf(stderr, msg); exit(-1); } @@ -326,7 +322,7 @@ void check_compatibility(jpeg_ls_header *head_frame, jpeg_ls_header *head_scan, /* for writing disclaimer to command line in DOS */ -char *ttyfilename = "CON"; +char ttyfilename[] = "CON"; #define PAUSE 20