diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-05-04 20:47:39 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-05-04 22:22:48 +0200 |
commit | 7070857b47373dafc1ab93fadec79243da589a1a (patch) | |
tree | 760817fb41a74984a499bc88d5ae84d4a0a4ebb8 /lib/comp/compressor.c | |
parent | 2b975a449c17268f943403176a7609079b7af084 (diff) |
Rename lzma compressor to xz, zlib compressor to gzip
Stick to the terminology that SquashFS uses. SquashFS uses "lzma" to
refere to lzma1, "xz" to refere to lzma2 and confusingly "gzip" to
refere to raw zlib deflate. We can avoid a lot of confusion by
_consistently_ using the same terminology.
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/comp/compressor.c')
-rw-r--r-- | lib/comp/compressor.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/comp/compressor.c b/lib/comp/compressor.c index 3bc2b4d..1ede111 100644 --- a/lib/comp/compressor.c +++ b/lib/comp/compressor.c @@ -6,11 +6,11 @@ typedef compressor_t *(*compressor_fun_t)(bool compress, size_t block_size); static compressor_fun_t compressors[SQFS_COMP_MAX + 1] = { -#ifdef WITH_ZLIB - [SQFS_COMP_GZIP] = create_zlib_compressor, +#ifdef WITH_GZIP + [SQFS_COMP_GZIP] = create_gzip_compressor, #endif -#ifdef WITH_LZMA - [SQFS_COMP_XZ] = create_lzma_compressor, +#ifdef WITH_XZ + [SQFS_COMP_XZ] = create_xz_compressor, #endif }; |