From 551dd3879c288a2b6b6fbaca5c09c04fbe994ff4 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Tue, 13 Dec 2022 09:15:19 +0100 Subject: Split stream compression out of libio Move it to a separate libxfrm library, where it can be independently tested as well. The bulk of the new code is also mainly test cases for the compressors. Signed-off-by: David Oberhollenzer --- bin/tar2sqfs/options.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bin/tar2sqfs/options.c') diff --git a/bin/tar2sqfs/options.c b/bin/tar2sqfs/options.c index 94e7036..f2185a6 100644 --- a/bin/tar2sqfs/options.c +++ b/bin/tar2sqfs/options.c @@ -94,15 +94,15 @@ char *root_becomes = NULL; static void input_compressor_print_available(void) { - int i = IO_COMPRESSOR_MIN; + int i = XFRM_COMPRESSOR_MIN; const char *name; fputs("\nSupported tar compression formats:\n", stdout); - while (i <= IO_COMPRESSOR_MAX) { - name = io_compressor_name_from_id(i); + while (i <= XFRM_COMPRESSOR_MAX) { + name = xfrm_compressor_name_from_id(i); - if (io_compressor_exists(i)) + if (name != NULL) printf("\t%s\n", name); ++i; -- cgit v1.2.3