]> git.ipfire.org Git - people/stevee/pakfire.git/commitdiff
compress: Fix wrong variable in threads code
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 16 Mar 2023 09:10:00 +0000 (09:10 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 16 Mar 2023 09:10:00 +0000 (09:10 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/compress.c

index dbe470d59aa9a346e3802d36704815528e874e9b..110041e1351a799ea44e95c493f8fdb392342f0c 100644 (file)
@@ -1161,10 +1161,10 @@ int pakfire_compress_create_archive(struct pakfire* pakfire, struct archive** ar
                                }
 
                                // Try using multiple threads
-                               r = archive_write_set_filter_option(a, NULL, "threads", threads);
+                               r = archive_write_set_filter_option(a, NULL, "threads", value);
                                if (r) {
-                                       ERROR(pakfire, "Could not enable %s threads for compression: %s\n",
-                                               threads, archive_error_string(a));
+                                       ERROR(pakfire, "Could not enable %ld threads for compression: %s\n",
+                                               processors, archive_error_string(a));
                                        goto ERROR;
                                }
                        }