]> git.ipfire.org Git - pakfire.git/commitdiff
xfer: Pass any numeric values as long
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 21 Jun 2025 11:43:59 +0000 (11:43 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 21 Jun 2025 11:43:59 +0000 (11:43 +0000)
cURL now complains if the value is not long.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/pakfire/xfer.c

index c78afb7f0c0ef2e2524ed9576ce75b981d7d55cc..c9e90b05bbd9bc6a450b48b66876a72a87ee392b 100644 (file)
@@ -305,7 +305,7 @@ static int pakfire_xfer_setup(struct pakfire_xfer* xfer) {
        curl_easy_setopt(xfer->handle, CURLOPT_PRIVATE, xfer);
 
        // Follow any redirects
-       curl_easy_setopt(xfer->handle, CURLOPT_FOLLOWLOCATION, 1);
+       curl_easy_setopt(xfer->handle, CURLOPT_FOLLOWLOCATION, 1L);
 
        // Only follow up to 30 redirects
        curl_easy_setopt(xfer->handle, CURLOPT_MAXREDIRS, 30L);