X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=src%2Fsuffix.c;h=a044d5aaaf4f2d83a8193c2bab092ee2a4e814f1;hb=f0ceef8596838d725205e0b2aa7fd39da48fa34d;hp=fcf229798badb877575b19f67eca695102d9f0a7;hpb=af3e05b6af31232236b5d2c1b5a5da5392ed3018;p=chaz%2Ftar diff --git a/src/suffix.c b/src/suffix.c index fcf2297..a044d5a 100644 --- a/src/suffix.c +++ b/src/suffix.c @@ -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)