]> Dogcows Code - chaz/tar/blobdiff - src/suffix.c
Minor fix.
[chaz/tar] / src / suffix.c
index fcf229798badb877575b19f67eca695102d9f0a7..a044d5aaaf4f2d83a8193c2bab092ee2a4e814f1 100644 (file)
@@ -1,5 +1,5 @@
 /* This file is part of GNU tar.
-   Copyright (C) 2007 Free Software Foundation, Inc.
+   Copyright (C) 2007, 2009 Free Software Foundation, Inc.
 
    Written by Sergey Poznyakoff.
 
@@ -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) },
@@ -39,11 +39,13 @@ struct compression_suffix compression_suffixes[] = {
   { S(tz2, bzip2) },
   { S(lzma, lzma) },
   { S(tlz, lzma) },
+  { S(lzo, lzop) },
+  { S(xz, xz) },
 #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.025097 seconds and 4 git commands to generate.