diff options
Diffstat (limited to 'gzip.c')
-rw-r--r-- | gzip.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -1382,7 +1382,7 @@ int length; | |||
1382 | (char *) window + start, length) != EQUAL) { | 1382 | (char *) window + start, length) != EQUAL) { |
1383 | fprintf(stderr, | 1383 | fprintf(stderr, |
1384 | " start %d, match %d, length %d\n", start, match, length); | 1384 | " start %d, match %d, length %d\n", start, match, length); |
1385 | error_msg("invalid match\n"); | 1385 | error_msg("invalid match"); |
1386 | } | 1386 | } |
1387 | if (verbose > 1) { | 1387 | if (verbose > 1) { |
1388 | fprintf(stderr, "\\[%d,%d]", start - match, length); | 1388 | fprintf(stderr, "\\[%d,%d]", start - match, length); |
@@ -1822,9 +1822,9 @@ int gzip_main(int argc, char **argv) | |||
1822 | } | 1822 | } |
1823 | 1823 | ||
1824 | if (isatty(fileno(stdin)) && fromstdin==1 && force==0) | 1824 | if (isatty(fileno(stdin)) && fromstdin==1 && force==0) |
1825 | error_msg_and_die( "data not read from terminal. Use -f to force it.\n"); | 1825 | error_msg_and_die( "data not read from terminal. Use -f to force it."); |
1826 | if (isatty(fileno(stdout)) && tostdout==1 && force==0) | 1826 | if (isatty(fileno(stdout)) && tostdout==1 && force==0) |
1827 | error_msg_and_die( "data not written to terminal. Use -f to force it.\n"); | 1827 | error_msg_and_die( "data not written to terminal. Use -f to force it."); |
1828 | 1828 | ||
1829 | foreground = signal(SIGINT, SIG_IGN) != SIG_IGN; | 1829 | foreground = signal(SIGINT, SIG_IGN) != SIG_IGN; |
1830 | if (foreground) { | 1830 | if (foreground) { |
@@ -2894,7 +2894,7 @@ int eof; /* true if this is the last block for a file */ | |||
2894 | #endif | 2894 | #endif |
2895 | /* Since LIT_BUFSIZE <= 2*WSIZE, the input data must be there: */ | 2895 | /* Since LIT_BUFSIZE <= 2*WSIZE, the input data must be there: */ |
2896 | if (buf == (char *) 0) | 2896 | if (buf == (char *) 0) |
2897 | error_msg("block vanished\n"); | 2897 | error_msg("block vanished"); |
2898 | 2898 | ||
2899 | copy_block(buf, (unsigned) stored_len, 0); /* without header */ | 2899 | copy_block(buf, (unsigned) stored_len, 0); /* without header */ |
2900 | compressed_len = stored_len << 3; | 2900 | compressed_len = stored_len << 3; |
@@ -3077,7 +3077,7 @@ local void set_file_type() | |||
3077 | bin_freq += dyn_ltree[n++].Freq; | 3077 | bin_freq += dyn_ltree[n++].Freq; |
3078 | *file_type = bin_freq > (ascii_freq >> 2) ? BINARY : ASCII; | 3078 | *file_type = bin_freq > (ascii_freq >> 2) ? BINARY : ASCII; |
3079 | if (*file_type == BINARY && translate_eol) { | 3079 | if (*file_type == BINARY && translate_eol) { |
3080 | error_msg("-l used on binary file\n"); | 3080 | error_msg("-l used on binary file"); |
3081 | } | 3081 | } |
3082 | } | 3082 | } |
3083 | 3083 | ||
@@ -3239,7 +3239,7 @@ char *env; /* name of environment variable */ | |||
3239 | 3239 | ||
3240 | /* Copy the program name first */ | 3240 | /* Copy the program name first */ |
3241 | if (oargc-- < 0) | 3241 | if (oargc-- < 0) |
3242 | error_msg("argc<=0\n"); | 3242 | error_msg("argc<=0"); |
3243 | *(nargv++) = *(oargv++); | 3243 | *(nargv++) = *(oargv++); |
3244 | 3244 | ||
3245 | /* Then copy the environment args */ | 3245 | /* Then copy the environment args */ |