summaryrefslogtreecommitdiff
path: root/lib/sqfs/comp/gzip.c
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-09-27 16:09:55 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-09-27 16:09:55 +0200
commit720023d968b24fe358fd4cfb002d8572f6cc96e7 (patch)
tree1c4bcfa650e49051f7ed215623696514f96d34f3 /lib/sqfs/comp/gzip.c
parentbc8a16a6782d54d697a575d81dfd490022346d9d (diff)
Fix typo in error enumerator
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/sqfs/comp/gzip.c')
-rw-r--r--lib/sqfs/comp/gzip.c12
1 files changed, 6 insertions, 6 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;
}