summaryrefslogtreecommitdiff
path: root/lib/sqfshelper/compress.c
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-09-05 18:46:50 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-09-05 18:46:50 +0200
commit320ae4f8e752f6652c7b5c8201d7267cd4de17c1 (patch)
tree4423514c5433dc3b70e32fd5950a139827b94ac9 /lib/sqfshelper/compress.c
parentf92cf3b98f51d355c92900f1d316b141b2b9d4fd (diff)
Cleanup naming scheme of compressor
Add sqfs_* prefix to compressor, move implementation prefix up front. Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/sqfshelper/compress.c')
-rw-r--r--lib/sqfshelper/compress.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/sqfshelper/compress.c b/lib/sqfshelper/compress.c
index 3d53e9e..9f89e45 100644
--- a/lib/sqfshelper/compress.c
+++ b/lib/sqfshelper/compress.c
@@ -8,10 +8,10 @@
E_SQFS_COMPRESSOR compressor_get_default(void)
{
- if (compressor_exists(SQFS_COMP_XZ))
+ if (sqfs_compressor_exists(SQFS_COMP_XZ))
return SQFS_COMP_XZ;
- if (compressor_exists(SQFS_COMP_ZSTD))
+ if (sqfs_compressor_exists(SQFS_COMP_ZSTD))
return SQFS_COMP_ZSTD;
return SQFS_COMP_GZIP;
@@ -24,10 +24,10 @@ void compressor_print_available(void)
fputs("Available compressors:\n", stdout);
for (i = SQFS_COMP_MIN; i <= SQFS_COMP_MAX; ++i) {
- if (compressor_exists(i))
- printf("\t%s\n", compressor_name_from_id(i));
+ if (sqfs_compressor_exists(i))
+ printf("\t%s\n", sqfs_compressor_name_from_id(i));
}
printf("\nDefault compressor: %s\n",
- compressor_name_from_id(compressor_get_default()));
+ sqfs_compressor_name_from_id(compressor_get_default()));
}