diff --git a/cjpeg.c b/cjpeg.c index af946d28..92e2824f 100644 --- a/cjpeg.c +++ b/cjpeg.c @@ -290,13 +290,12 @@ parse_switches (j_compress_ptr cinfo, int argc, char **argv, JVERSION); printed_version = TRUE; } - cinfo->err->trace_level++; } else if (keymatch(arg, "version", 4)) { fprintf(stderr, "%s version %s (build %s)\n", PACKAGE_NAME, VERSION, BUILD); - exit(EXIT_SUCCESS); + exit(EXIT_SUCCESS); } else if (keymatch(arg, "grayscale", 2) || keymatch(arg, "greyscale",2)) { /* Force a monochrome JPEG file to be generated. */ diff --git a/djpeg.c b/djpeg.c index 0a669476..8ddff96e 100644 --- a/djpeg.c +++ b/djpeg.c @@ -265,7 +265,7 @@ parse_switches (j_decompress_ptr cinfo, int argc, char **argv, } else if (keymatch(arg, "version", 4)) { fprintf(stderr, "%s version %s (build %s)\n", PACKAGE_NAME, VERSION, BUILD); - exit(EXIT_SUCCESS); + exit(EXIT_SUCCESS); } else if (keymatch(arg, "fast", 1)) { /* Select recommended processing options for quick-and-dirty output. */ diff --git a/jpegtran.c b/jpegtran.c index e4024cbb..f978cef8 100644 --- a/jpegtran.c +++ b/jpegtran.c @@ -216,7 +216,7 @@ parse_switches (j_compress_ptr cinfo, int argc, char **argv, } else if (keymatch(arg, "version", 4)) { fprintf(stderr, "%s version %s (build %s)\n", PACKAGE_NAME, VERSION, BUILD); - exit(EXIT_SUCCESS); + exit(EXIT_SUCCESS); } else if (keymatch(arg, "flip", 1)) { /* Mirror left-right or top-bottom. */