From: Michael Tremer Date: Sat, 21 Jun 2025 11:43:59 +0000 (+0000) Subject: xfer: Pass any numeric values as long X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6aec206fd5813bb8b116304f13ef2701df0ca1cf;p=pakfire.git xfer: Pass any numeric values as long cURL now complains if the value is not long. Signed-off-by: Michael Tremer --- diff --git a/src/pakfire/xfer.c b/src/pakfire/xfer.c index c78afb7f..c9e90b05 100644 --- a/src/pakfire/xfer.c +++ b/src/pakfire/xfer.c @@ -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);