From 26b7b353071573a3c69a9e27761226714f568d31 Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Mon, 18 Sep 2023 12:52:08 +1000 Subject: [PATCH] Remove random_partfile from payload struct It is not used any more due to filling the payload structure earlier. Signed-off-by: Allan McRae --- lib/libalpm/dload.c | 1 - lib/libalpm/dload.h | 1 - 2 files changed, 2 deletions(-) diff --git a/lib/libalpm/dload.c b/lib/libalpm/dload.c index 89f7eefb..32586c10 100644 --- a/lib/libalpm/dload.c +++ b/lib/libalpm/dload.c @@ -1274,7 +1274,6 @@ int SYMEXPORT alpm_fetch_pkgurl(alpm_handle_t *handle, const alpm_list_t *urls, /* The URL does not contain a filename, so download to a temporary location. * We can not support resuming this kind of download; any partial transfers * will be destroyed */ - payload->random_partfile = 1; payload->unlink_on_fail = 1; payload->tempfile_openmode = "wb"; diff --git a/lib/libalpm/dload.h b/lib/libalpm/dload.h index 7eb56b19..99c656ba 100644 --- a/lib/libalpm/dload.h +++ b/lib/libalpm/dload.h @@ -45,7 +45,6 @@ struct dload_payload { off_t prevprogress; int force; int allow_resume; - int random_partfile; int errors_ok; int unlink_on_fail; int trust_remote_name;