From 7037ee9a15f265a9b7e6fef8ed8a5edb7cb7b759 Mon Sep 17 00:00:00 2001
From: Vivek Kumar Dutta <vivek.dutta@iopsys.eu>
Date: Mon, 17 Apr 2023 19:41:41 +0530
Subject: [PATCH] Update curl_easy_getinfo to build with CURL > 7.55.0

Replace CURLINFO_CONTENT_LENGTH_DOWNLOAD with CURLINFO_CONTENT_LENGTH_DOWNLOAD_T.

On-behalf-of: Piotr Kubik <piotr.kubik@iopsys.eu>
---
 src/tools.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/tools.c b/src/tools.c
index 6f4a771..37ebb69 100644
--- a/src/tools.c
+++ b/src/tools.c
@@ -976,7 +976,7 @@ unsigned long get_remote_file_size(const char *url, const char *uname, const cha
 
 		if (CURLE_OK == res) {
 			double filesize = 0;
-			res = curl_easy_getinfo(curl, CURLINFO_CONTENT_LENGTH_DOWNLOAD,
+			res = curl_easy_getinfo(curl, CURLINFO_CONTENT_LENGTH_DOWNLOAD_T,
 						&filesize);
 			if ((res == CURLE_OK) && (filesize > 0)) {
 				file_size_kb = (unsigned long)filesize/1024;
-- 
GitLab