X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=examples%2Fcompressfile.c;h=6887e0e4cae389c676bb023a1a46eab269ac6327;hb=5ba1093ddc24f41f2f4179aeb8e2c8e86401af8c;hp=824165db0ec660259bbb9b9dcb8843f27414b514;hpb=c3a1bd96026fd5a1d43c5f6178f9f0165afdd098;p=wimlib diff --git a/examples/compressfile.c b/examples/compressfile.c index 824165db..6887e0e4 100644 --- a/examples/compressfile.c +++ b/examples/compressfile.c @@ -26,6 +26,9 @@ * * The compressed file format created here is simply a series of compressed * chunks. A real format would need to have checksums and other metadata. + * + * The author dedicates this file to the public domain. + * You can do whatever you want with this file. */ #define _GNU_SOURCE @@ -143,7 +146,7 @@ int main(int argc, char **argv) /* Create a compressor for the compression type and chunk size with the * default parameters. */ - ret = wimlib_create_compressor(ctype, chunk_size, NULL, &compressor); + ret = wimlib_create_compressor(ctype, chunk_size, 0, &compressor); if (ret != 0) error(1, 0, "Failed to create compressor: %s", wimlib_get_error_string(ret));