]> wimlib.net Git - wimlib/blobdiff - examples/compressfile.c
wimlib.h: fix typo
[wimlib] / examples / compressfile.c
index 824165db0ec660259bbb9b9dcb8843f27414b514..6887e0e4cae389c676bb023a1a46eab269ac6327 100644 (file)
@@ -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));