From 88abb502297d9c27da7f856548d8eb08300e8aa2 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Thu, 11 Jun 2020 18:01:50 -0700 Subject: [PATCH] Promote newer compressors to the start of the list. --- compat.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/compat.c b/compat.c index a124c200..91b2771d 100644 --- a/compat.c +++ b/compat.c @@ -88,16 +88,14 @@ int filesfrom_convert = 0; struct name_num_obj valid_compressions = { "compress", NULL, NULL, 0, 0, { - { CPRES_ZLIBX, "zlibx", NULL }, - { CPRES_ZLIB, "zlib", NULL }, #ifdef SUPPORT_ZSTD - /* TODO decide where in the default preference order this should go. */ { CPRES_ZSTD, "zstd", NULL }, #endif #ifdef SUPPORT_LZ4 - /* TODO decide where in the default preference order this should go. */ { CPRES_LZ4, "lz4", NULL }, #endif + { CPRES_ZLIBX, "zlibx", NULL }, + { CPRES_ZLIB, "zlib", NULL }, { CPRES_NONE, "none", NULL }, { 0, NULL, NULL } } -- 2.47.2