]> wimlib.net Git - wimlib/blobdiff - src/decompress.c
{de,}compress.c: Sort ops by type number
[wimlib] / src / decompress.c
index 4ea066f0d4a86a628c70941330554d8a5c745e3e..c9965a0ffeaf22aad2a8f373272c7b03e5b2d371 100644 (file)
@@ -38,16 +38,13 @@ 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,
 };
 
 static struct wimlib_decompressor_params_header *
 decompressor_default_params[ARRAY_LEN(decompressor_ops)] = {
-       [WIMLIB_COMPRESSION_TYPE_LZX]    = NULL,
-       [WIMLIB_COMPRESSION_TYPE_XPRESS] = NULL,
-       [WIMLIB_COMPRESSION_TYPE_LZMS]   = NULL,
 };
 
 static bool