]> wimlib.net Git - wimlib/commitdiff
{de,}compress.c: Sort ops by type number
authorEric Biggers <ebiggers3@gmail.com>
Sat, 14 Jun 2014 04:30:24 +0000 (23:30 -0500)
committerEric Biggers <ebiggers3@gmail.com>
Sat, 14 Jun 2014 04:30:24 +0000 (23:30 -0500)
src/compress.c
src/decompress.c

index 045a51042404c43f6010b5afec9d6683ff0a22fa..840440770bff1bf01ba02173389c81016e37922c 100644 (file)
@@ -38,8 +38,8 @@ struct wimlib_compressor {
 };
 
 static const struct compressor_ops *compressor_ops[] = {
-       [WIMLIB_COMPRESSION_TYPE_LZX]    = &lzx_compressor_ops,
        [WIMLIB_COMPRESSION_TYPE_XPRESS] = &xpress_compressor_ops,
+       [WIMLIB_COMPRESSION_TYPE_LZX]    = &lzx_compressor_ops,
        [WIMLIB_COMPRESSION_TYPE_LZMS]   = &lzms_compressor_ops,
 };
 
index 3bd51b183b5de90f1c20ea7a5630a03254e9533a..c9965a0ffeaf22aad2a8f373272c7b03e5b2d371 100644 (file)
@@ -38,8 +38,8 @@ struct wimlib_decompressor {
 };
 
 static const struct decompressor_ops *decompressor_ops[] = {
-       [WIMLIB_COMPRESSION_TYPE_LZX]    = &lzx_decompressor_ops,
        [WIMLIB_COMPRESSION_TYPE_XPRESS] = &xpress_decompressor_ops,
+       [WIMLIB_COMPRESSION_TYPE_LZX]    = &lzx_decompressor_ops,
        [WIMLIB_COMPRESSION_TYPE_LZMS]   = &lzms_decompressor_ops,
 };