diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-09-27 16:09:55 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-09-27 16:09:55 +0200 |
commit | 720023d968b24fe358fd4cfb002d8572f6cc96e7 (patch) | |
tree | 1c4bcfa650e49051f7ed215623696514f96d34f3 /lib/sqfs/comp | |
parent | bc8a16a6782d54d697a575d81dfd490022346d9d (diff) |
Fix typo in error enumerator
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/sqfs/comp')
-rw-r--r-- | lib/sqfs/comp/gzip.c | 12 | ||||
-rw-r--r-- | lib/sqfs/comp/lz4.c | 4 | ||||
-rw-r--r-- | lib/sqfs/comp/lzma.c | 10 | ||||
-rw-r--r-- | lib/sqfs/comp/lzo.c | 4 | ||||
-rw-r--r-- | lib/sqfs/comp/xz.c | 6 | ||||
-rw-r--r-- | lib/sqfs/comp/zstd.c | 4 |
6 files changed, 20 insertions, 20 deletions
diff --git a/lib/sqfs/comp/gzip.c b/lib/sqfs/comp/gzip.c index b18d5f7..0c6f944 100644 --- a/lib/sqfs/comp/gzip.c +++ b/lib/sqfs/comp/gzip.c @@ -118,7 +118,7 @@ static int find_strategy(gzip_compressor_t *gzip, const uint8_t *in, ret = deflateReset(&gzip->strm); if (ret != Z_OK) - return SQFS_ERROR_COMRPESSOR; + return SQFS_ERROR_COMPRESSOR; strategy = flag_to_zlib_strategy(i); @@ -129,7 +129,7 @@ static int find_strategy(gzip_compressor_t *gzip, const uint8_t *in, ret = deflateParams(&gzip->strm, gzip->opt.level, strategy); if (ret != Z_OK) - return SQFS_ERROR_COMRPESSOR; + return SQFS_ERROR_COMPRESSOR; ret = deflate(&gzip->strm, Z_FINISH); @@ -141,7 +141,7 @@ static int find_strategy(gzip_compressor_t *gzip, const uint8_t *in, selected = strategy; } } else if (ret != Z_OK && ret != Z_BUF_ERROR) { - return SQFS_ERROR_COMRPESSOR; + return SQFS_ERROR_COMPRESSOR; } } @@ -168,7 +168,7 @@ static ssize_t gzip_do_block(sqfs_compressor_t *base, const uint8_t *in, } if (ret != Z_OK) - return SQFS_ERROR_COMRPESSOR; + return SQFS_ERROR_COMPRESSOR; gzip->strm.next_in = (void *)in; gzip->strm.avail_in = size; @@ -178,7 +178,7 @@ static ssize_t gzip_do_block(sqfs_compressor_t *base, const uint8_t *in, if (gzip->compress && gzip->opt.strategies != 0) { ret = deflateParams(&gzip->strm, gzip->opt.level, strategy); if (ret != Z_OK) - return SQFS_ERROR_COMRPESSOR; + return SQFS_ERROR_COMPRESSOR; } if (gzip->compress) { @@ -197,7 +197,7 @@ static ssize_t gzip_do_block(sqfs_compressor_t *base, const uint8_t *in, } if (ret != Z_OK && ret != Z_BUF_ERROR) - return SQFS_ERROR_COMRPESSOR; + return SQFS_ERROR_COMPRESSOR; return 0; } diff --git a/lib/sqfs/comp/lz4.c b/lib/sqfs/comp/lz4.c index ef4ab99..db44bc4 100644 --- a/lib/sqfs/comp/lz4.c +++ b/lib/sqfs/comp/lz4.c @@ -74,7 +74,7 @@ static ssize_t lz4_comp_block(sqfs_compressor_t *base, const uint8_t *in, } if (ret < 0) - return SQFS_ERROR_COMRPESSOR; + return SQFS_ERROR_COMPRESSOR; return ret; } @@ -88,7 +88,7 @@ static ssize_t lz4_uncomp_block(sqfs_compressor_t *base, const uint8_t *in, ret = LZ4_decompress_safe((void *)in, (void *)out, size, outsize); if (ret < 0) - return SQFS_ERROR_COMRPESSOR; + return SQFS_ERROR_COMPRESSOR; return ret; } diff --git a/lib/sqfs/comp/lzma.c b/lib/sqfs/comp/lzma.c index 9fc507f..57a942e 100644 --- a/lib/sqfs/comp/lzma.c +++ b/lib/sqfs/comp/lzma.c @@ -55,7 +55,7 @@ static ssize_t lzma_comp_block(sqfs_compressor_t *base, const uint8_t *in, if (lzma_alone_encoder(&strm, &opt) != LZMA_OK) { lzma_end(&strm); - return SQFS_ERROR_COMRPESSOR; + return SQFS_ERROR_COMPRESSOR; } strm.next_out = out; @@ -67,7 +67,7 @@ static ssize_t lzma_comp_block(sqfs_compressor_t *base, const uint8_t *in, lzma_end(&strm); if (ret != LZMA_STREAM_END) - return ret == LZMA_OK ? 0 : SQFS_ERROR_COMRPESSOR; + return ret == LZMA_OK ? 0 : SQFS_ERROR_COMPRESSOR; if (strm.total_out > size) return 0; @@ -105,7 +105,7 @@ static ssize_t lzma_uncomp_block(sqfs_compressor_t *base, const uint8_t *in, if (lzma_alone_decoder(&strm, MEMLIMIT) != LZMA_OK) { lzma_end(&strm); - return SQFS_ERROR_COMRPESSOR; + return SQFS_ERROR_COMPRESSOR; } memcpy(lzma_header, in, sizeof(lzma_header)); @@ -120,7 +120,7 @@ static ssize_t lzma_uncomp_block(sqfs_compressor_t *base, const uint8_t *in, if (ret != LZMA_OK || strm.avail_in != 0) { lzma_end(&strm); - return SQFS_ERROR_COMRPESSOR; + return SQFS_ERROR_COMPRESSOR; } strm.next_in = in + sizeof(lzma_header); @@ -130,7 +130,7 @@ static ssize_t lzma_uncomp_block(sqfs_compressor_t *base, const uint8_t *in, lzma_end(&strm); if (ret != LZMA_STREAM_END && ret != LZMA_OK) - return SQFS_ERROR_COMRPESSOR; + return SQFS_ERROR_COMPRESSOR; if (ret == LZMA_OK) { if (strm.total_out < hdrsize || strm.avail_in != 0) diff --git a/lib/sqfs/comp/lzo.c b/lib/sqfs/comp/lzo.c index 8589dfb..0b140b8 100644 --- a/lib/sqfs/comp/lzo.c +++ b/lib/sqfs/comp/lzo.c @@ -130,7 +130,7 @@ static ssize_t lzo_comp_block(sqfs_compressor_t *base, const uint8_t *in, } if (ret != LZO_E_OK) - return SQFS_ERROR_COMRPESSOR; + return SQFS_ERROR_COMPRESSOR; if (len < size) return len; @@ -148,7 +148,7 @@ static ssize_t lzo_uncomp_block(sqfs_compressor_t *base, const uint8_t *in, ret = lzo1x_decompress_safe(in, size, out, &len, lzo->buffer); if (ret != LZO_E_OK) - return SQFS_ERROR_COMRPESSOR; + return SQFS_ERROR_COMPRESSOR; return len; } diff --git a/lib/sqfs/comp/xz.c b/lib/sqfs/comp/xz.c index b26e6f1..f0229e0 100644 --- a/lib/sqfs/comp/xz.c +++ b/lib/sqfs/comp/xz.c @@ -85,7 +85,7 @@ static ssize_t compress(xz_compressor_t *xz, lzma_vli filter, int i = 0; if (lzma_lzma_preset(&opt, LZMA_PRESET_DEFAULT)) - return SQFS_ERROR_COMRPESSOR; + return SQFS_ERROR_COMPRESSOR; opt.dict_size = xz->dict_size; @@ -110,7 +110,7 @@ static ssize_t compress(xz_compressor_t *xz, lzma_vli filter, return (written >= size) ? 0 : written; if (ret != LZMA_BUF_ERROR) - return SQFS_ERROR_COMRPESSOR; + return SQFS_ERROR_COMPRESSOR; return 0; } @@ -187,7 +187,7 @@ static ssize_t xz_uncomp_block(sqfs_compressor_t *base, const uint8_t *in, if (ret == LZMA_OK && size == src_pos) return (ssize_t)dest_pos; - return SQFS_ERROR_COMRPESSOR; + return SQFS_ERROR_COMPRESSOR; } static sqfs_compressor_t *xz_create_copy(sqfs_compressor_t *cmp) diff --git a/lib/sqfs/comp/zstd.c b/lib/sqfs/comp/zstd.c index 312679a..50440a0 100644 --- a/lib/sqfs/comp/zstd.c +++ b/lib/sqfs/comp/zstd.c @@ -61,7 +61,7 @@ static ssize_t zstd_comp_block(sqfs_compressor_t *base, const uint8_t *in, zstd->level); if (ZSTD_isError(ret)) - return SQFS_ERROR_COMRPESSOR; + return SQFS_ERROR_COMPRESSOR; return ret < size ? ret : 0; } @@ -75,7 +75,7 @@ static ssize_t zstd_uncomp_block(sqfs_compressor_t *base, const uint8_t *in, ret = ZSTD_decompress(out, outsize, in, size); if (ZSTD_isError(ret)) - return SQFS_ERROR_COMRPESSOR; + return SQFS_ERROR_COMPRESSOR; return ret; } |