From: Paul Eggert Date: Mon, 23 Aug 2010 18:36:53 +0000 (-0700) Subject: tar: fix misspelled identifier "set_comression_program_by_suffix" X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=9764a6b1d3b91b654728c04a645f20c605970562;p=chaz%2Ftar tar: fix misspelled identifier "set_comression_program_by_suffix" * src/suffix.c (set_compression_program_by_suffix): Renamed from set_comression_program_by_suffix. * src/buffer.c, src/common.h, src/tar.c: All uses changed. --- diff --git a/src/buffer.c b/src/buffer.c index c66b08c..ef4bbac 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -389,7 +389,7 @@ open_compressed_archive (void) case ct_none: if (shortfile) ERROR ((0, 0, _("This does not look like a tar archive"))); - set_comression_program_by_suffix (archive_name_array[0], NULL); + set_compression_program_by_suffix (archive_name_array[0], NULL); if (!use_compress_program_option) return archive; break; diff --git a/src/common.h b/src/common.h index bc1f3a2..595e2ee 100644 --- a/src/common.h +++ b/src/common.h @@ -809,7 +809,7 @@ bool transform_name_fp (char **pinput, int type, char *(*fun)(char *, void *), void *); /* Module suffix.c */ -void set_comression_program_by_suffix (const char *name, const char *defprog); +void set_compression_program_by_suffix (const char *name, const char *defprog); /* Module checkpoint.c */ void checkpoint_compile_action (const char *str); diff --git a/src/suffix.c b/src/suffix.c index a46b087..046cf2b 100644 --- a/src/suffix.c +++ b/src/suffix.c @@ -74,7 +74,7 @@ find_compression_program (const char *name, const char *defprog) } void -set_comression_program_by_suffix (const char *name, const char *defprog) +set_compression_program_by_suffix (const char *name, const char *defprog) { const char *program = find_compression_program (name, defprog); if (program) diff --git a/src/tar.c b/src/tar.c index dcc3116..4bfcdce 100644 --- a/src/tar.c +++ b/src/tar.c @@ -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: