X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Ftar.c;h=782ed3b5328a7778cb7afd786416803e5f3b0cbb;hb=57b11473b0135b1e092cf045f94635c934c7c63f;hp=10ba8a9b8a06bf2a9709008e6bf9a3d8d731f7bf;hpb=c1b30c268f8517bfe61fe253a34613584351efc0;p=chaz%2Ftar diff --git a/src/tar.c b/src/tar.c index 10ba8a9..782ed3b 100644 --- a/src/tar.c +++ b/src/tar.c @@ -74,7 +74,7 @@ static const char *stdin_used_by; /* Doesn't return if stdin already requested. */ -void +static void request_stdin (const char *option) { if (stdin_used_by) @@ -1509,7 +1509,7 @@ parse_opt (int key, char *arg, struct argp_state *state) { uintmax_t u; char *p; - + if (xstrtoumax (arg, &p, 10, &u, TAR_SIZE_SUFFIXES) != LONGINT_OK) USAGE_ERROR ((0, 0, "%s: %s", quotearg_colon (arg), _("Invalid tape length"))); @@ -1968,7 +1968,7 @@ parse_opt (int key, char *arg, struct argp_state *state) case RECORD_SIZE_OPTION: { uintmax_t u; - + if (! (xstrtoumax (arg, NULL, 10, &u, TAR_SIZE_SUFFIXES) == LONGINT_OK && u == (size_t) u)) USAGE_ERROR ((0, 0, "%s: %s", quotearg_colon (arg), @@ -2494,8 +2494,8 @@ decode_options (int argc, char **argv) _("Cowardly refusing to create an empty archive"))); if (args.compress_autodetect && archive_names && strcmp (archive_name_array[0], "-")) - set_comression_program_by_suffix (archive_name_array[0], - use_compress_program_option); + set_compression_program_by_suffix (archive_name_array[0], + use_compress_program_option); break; case EXTRACT_SUBCOMMAND: