summaryrefslogtreecommitdiff
path: root/lib/common
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-03-05 15:17:45 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-03-05 15:17:45 +0100
commit5acb22a6a7168f8b961777482f39a125158def50 (patch)
tree24e7b46a2b69a938fc7906bc690c652a1aeab269 /lib/common
parentfbf41ac14978c93d054832af6331e6795fb86b0f (diff)
Cleanup: Remove the E_ prefix from all libsquashfs enumerators
Avoid namespace polution. Make sure all exportet symbols are prefixed with either sqfs_ or SQFS_. Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/common')
-rw-r--r--lib/common/comp_opt.c4
-rw-r--r--lib/common/compress.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/common/comp_opt.c b/lib/common/comp_opt.c
index 66d562e..58a7a21 100644
--- a/lib/common/comp_opt.c
+++ b/lib/common/comp_opt.c
@@ -89,7 +89,7 @@ static char *const token[] = {
};
int compressor_cfg_init_options(sqfs_compressor_config_t *cfg,
- E_SQFS_COMPRESSOR id,
+ SQFS_COMPRESSOR id,
size_t block_size, char *options)
{
size_t num_flags = 0, min_level = 0, max_level = 0, level, dict_size;
@@ -332,7 +332,7 @@ static const compressor_help_fun_t helpfuns[SQFS_COMP_MAX + 1] = {
[SQFS_COMP_ZSTD] = zstd_print_help,
};
-void compressor_print_help(E_SQFS_COMPRESSOR id)
+void compressor_print_help(SQFS_COMPRESSOR id)
{
if (id < SQFS_COMP_MIN || id > SQFS_COMP_MAX)
return;
diff --git a/lib/common/compress.c b/lib/common/compress.c
index a2f53c2..3ee242d 100644
--- a/lib/common/compress.c
+++ b/lib/common/compress.c
@@ -6,7 +6,7 @@
*/
#include "common.h"
-E_SQFS_COMPRESSOR compressor_get_default(void)
+SQFS_COMPRESSOR compressor_get_default(void)
{
if (sqfs_compressor_exists(SQFS_COMP_XZ))
return SQFS_COMP_XZ;