]> Dogcows Code - chaz/tar/commitdiff
Minor fix.
authorSergey Poznyakoff <gray@gnu.org.ua>
Fri, 9 Oct 2009 08:48:11 +0000 (11:48 +0300)
committerSergey Poznyakoff <gray@gnu.org.ua>
Fri, 9 Oct 2009 08:49:26 +0000 (11:49 +0300)
* src/buffer.c (magic): Fix `xz' entry: add the name of the program.
* src/suffix.c (compression_suffixes, nsuffixes): Mark as static.

src/buffer.c
src/suffix.c

index dd9768244066de22f4c8408ffe70b0c2687eccba..fa9ccc231c53c32d07fa2285ba1c8919640beede 100644 (file)
@@ -220,12 +220,12 @@ struct zip_magic
 static struct zip_magic const magic[] = {
   { ct_tar },
   { ct_none, },
-  { ct_compress, 2, "\037\235", "compress", "-Z" },
-  { ct_gzip,     2, "\037\213", "gzip", "-z"  },
-  { ct_bzip2,    3, "BZh",      "bzip2", "-j" },
-  { ct_lzma,     6, "\xFFLZMA", "lzma", "--lzma" }, /* FIXME: ???? */
-  { ct_lzop,     4, "\211LZO",  "lzop", "--lzop" },
-  { ct_xz,       6, "\0xFD7zXZ", "-J" },
+  { ct_compress, 2, "\037\235",  "compress", "-Z" },
+  { ct_gzip,     2, "\037\213",  "gzip",     "-z"  },
+  { ct_bzip2,    3, "BZh",       "bzip2",    "-j" },
+  { ct_lzma,     6, "\xFFLZMA",  "lzma",     "--lzma" },
+  { ct_lzop,     4, "\211LZO",   "lzop",     "--lzop" },
+  { ct_xz,       6, "\0xFD7zXZ", "xz",       "-J" },
 };
 
 #define NMAGIC (sizeof(magic)/sizeof(magic[0]))
index 6dbc68e2d5a516eddb26f737cda704b9031299ee..a044d5aaaf4f2d83a8193c2bab092ee2a4e814f1 100644 (file)
@@ -26,7 +26,7 @@ struct compression_suffix
   const char *program;
 };
 
-struct compression_suffix compression_suffixes[] = {
+static struct compression_suffix compression_suffixes[] = {
 #define S(s,p) #s, sizeof (#s) - 1, #p
   { S(gz, gzip) },
   { S(tgz, gzip) },
@@ -44,8 +44,8 @@ struct compression_suffix compression_suffixes[] = {
 #undef S
 };
 
-int nsuffixes = sizeof (compression_suffixes) /
-                  sizeof (compression_suffixes[0]);
+static int nsuffixes = sizeof (compression_suffixes) /
+                        sizeof (compression_suffixes[0]);
 
 static const char *
 find_compression_program (const char *name, const char *defprog)
This page took 0.02265 seconds and 4 git commands to generate.