From 5acb22a6a7168f8b961777482f39a125158def50 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Thu, 5 Mar 2020 15:17:45 +0100 Subject: 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 --- lib/common/comp_opt.c | 4 ++-- lib/common/compress.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/common') 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; -- cgit v1.2.3