Fix programs not compiled by default
authorEric Biggers <ebiggers3@gmail.com>
Wed, 21 Aug 2013 04:35:25 +0000 (23:35 -0500)
committerEric Biggers <ebiggers3@gmail.com>
Wed, 21 Aug 2013 04:35:25 +0000 (23:35 -0500)
examples/applywim.c
programs/wimapply.c
tests/multi-mount/multi-mount.c

index ba62a95..6d34a43 100644 (file)
@@ -28,8 +28,7 @@ int main(int argc, char **argv)
                goto out_wimlib_global_cleanup;
 
        /* Extract all the images. */
-       ret = wimlib_extract_image(wim, WIMLIB_ALL_IMAGES, argv[2], 0,
-                                  NULL, 0, NULL);
+       ret = wimlib_extract_image(wim, WIMLIB_ALL_IMAGES, argv[2], 0, NULL);
 
        /* Free the WIM file */
        wimlib_free(wim);
index 8de4a54..cd7edde 100644 (file)
@@ -75,8 +75,7 @@ int main(int argc, char **argv)
                return ret;
        }
 
-       ret = wimlib_extract_image(w, image, target, extract_flags,
-                                  NULL, 0, NULL);
+       ret = wimlib_extract_image(w, image, target, extract_flags, NULL);
        if (ret != 0) {
                fputs("Failed to apply WIM image\n", stderr);
                fprintf(stderr, "Error code: %s\n", wimlib_get_error_string(ret));
index 8b93286..b6c5ff7 100644 (file)
@@ -9,22 +9,23 @@ int main(int argc, char **argv)
        WIMStruct *w2;
 
        assert(argc == 5);
-       ret = wimlib_open_wim(argv[1], 0, &w1);
+       ret = wimlib_open_wim(argv[1], 0, &w1, NULL);
        assert(ret == 0);
 
-       ret = wimlib_open_wim(argv[2], 0, &w2);
+       ret = wimlib_open_wim(argv[2], 0, &w2, NULL);
        assert(ret == 0);
 
        #pragma omp parallel num_threads(2)
        {
                int ret;
                assert(omp_get_num_threads() == 2);
-               if (omp_get_thread_num() == 0)
-                       ret = wimlib_mount(w1, 1, argv[3],
-                                          WIMLIB_MOUNT_FLAG_DEBUG, NULL, 0);
-               else
-                       ret = wimlib_mount(w2, 1, argv[4],
-                                          WIMLIB_MOUNT_FLAG_DEBUG, NULL, 0);
+               if (omp_get_thread_num() == 0) {
+                       ret = wimlib_mount_image(w1, 1, argv[3],
+                                                WIMLIB_MOUNT_FLAG_DEBUG, NULL);
+               } else {
+                       ret = wimlib_mount_image(w2, 1, argv[4],
+                                                WIMLIB_MOUNT_FLAG_DEBUG, NULL);
+               }
                assert(ret == 0);
        }
        return 0;