Promote newer compressors to the start of the list.
authorWayne Davison <wayne@opencoder.net>
Fri, 12 Jun 2020 01:01:50 +0000 (18:01 -0700)
committerWayne Davison <wayne@opencoder.net>
Fri, 12 Jun 2020 03:26:56 +0000 (20:26 -0700)
compat.c

index a124c20011d2d2a2e4c1bc4679c3e11d42f1f94c..91b2771d0a0fcb0534880b02c2916189ac1370bf 100644 (file)
--- 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 }
        }