]> Dogcows Code - chaz/tar/commitdiff
tar: fix misspelled identifier "set_comression_program_by_suffix"
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 23 Aug 2010 18:36:53 +0000 (11:36 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 23 Aug 2010 18:37:19 +0000 (11:37 -0700)
* 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.

src/buffer.c
src/common.h
src/suffix.c
src/tar.c

index c66b08cdd41cdd0271f64a1f733e9ab6fff647f2..ef4bbac6a7f6ec3a5cac1f24d59a24bb3806c507 100644 (file)
@@ -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;
index bc1f3a2585b85709296facadf1029ed2c659b0fb..595e2ee201d2e34e4b2211b38e2caf029992da9a 100644 (file)
@@ -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);
index a46b087f3e13bad9049e8020c9d5d144ff0384c1..046cf2bb6b2db1abf5cf3b239426c3cc93bd08d2 100644 (file)
@@ -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)
index dcc3116257609943fbac6a6cdc1298f923ee3927..4bfcdcea606580ea8fd31d96b1f1506e754a5f84 100644 (file)
--- 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:
This page took 0.028228 seconds and 4 git commands to generate.