summaryrefslogtreecommitdiff
path: root/include/sqfs
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-09-23 23:33:19 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-09-23 23:33:19 +0200
commit824423a9d2395514101cb837c2ede5473cf106ce (patch)
treeac28f76ad83db93fac4a2cb2252093cfc3ec5c2f /include/sqfs
parentc169887cc5d3ab83e7383234f46ad8963bc22b98 (diff)
Cleanup block processor error handling
If an error happpens, immediately stop everything and report only the first error that happened. This also fixes a memory leak in the error paths of the serial and pthread based block processors. Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include/sqfs')
-rw-r--r--include/sqfs/block_processor.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/include/sqfs/block_processor.h b/include/sqfs/block_processor.h
index 2086a3d..5b7b3e0 100644
--- a/include/sqfs/block_processor.h
+++ b/include/sqfs/block_processor.h
@@ -86,12 +86,7 @@ typedef enum {
/**
* @brief Set by compressor worker if the block was actually compressed.
*/
- SQFS_BLK_IS_COMPRESSED = 0x4000,
-
- /**
- * @brief Set by compressor worker if compression failed.
- */
- SQFS_BLK_COMPRESS_ERROR = 0x8000,
+ SQFS_BLK_IS_COMPRESSED = 0x8000,
/**
* @brief The combination of all flags that are user settable.