diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-11-24 16:36:20 +0100 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-11-24 16:47:49 +0100 |
commit | 162142b7930248d83a77e8d8f4eba5896d5b267a (patch) | |
tree | f65796333f80b4f710a19f5fcb6770d6aedbafe6 /lib/sqfs/comp/compressor.c | |
parent | dea3b64dd11a3a3391bd9d8f8c26f20392e7eb3c (diff) |
Cleanup libsquashfs invalid argument error codes
- Add an explicit "you're holding it wrong" error code.
- Consistently return error codes and not have some special places
where -1 is returned.
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/sqfs/comp/compressor.c')
-rw-r--r-- | lib/sqfs/comp/compressor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqfs/comp/compressor.c b/lib/sqfs/comp/compressor.c index c835f3f..0b8b5e9 100644 --- a/lib/sqfs/comp/compressor.c +++ b/lib/sqfs/comp/compressor.c @@ -141,7 +141,7 @@ int sqfs_compressor_id_from_name(const char *name, E_SQFS_COMPRESSOR *out) } } - return -1; + return SQFS_ERROR_UNSUPPORTED; } int sqfs_compressor_config_init(sqfs_compressor_config_t *cfg, |