From: Michael Tremer Date: Thu, 16 Mar 2023 09:10:00 +0000 (+0000) Subject: compress: Fix wrong variable in threads code X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1d7a641ffd1f0851a4af56e29d298121bd6aa365;p=people%2Fstevee%2Fpakfire.git compress: Fix wrong variable in threads code Signed-off-by: Michael Tremer --- diff --git a/src/libpakfire/compress.c b/src/libpakfire/compress.c index dbe470d5..110041e1 100644 --- a/src/libpakfire/compress.c +++ b/src/libpakfire/compress.c @@ -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; } }