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/lzma.c | |
parent | bc8a16a6782d54d697a575d81dfd490022346d9d (diff) |
Fix typo in error enumerator
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/sqfs/comp/lzma.c')
-rw-r--r-- | lib/sqfs/comp/lzma.c | 10 |
1 files changed, 5 insertions, 5 deletions
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) |