From: Daan De Meyer Date: Fri, 19 Sep 2025 09:29:36 +0000 (+0200) Subject: tree-wide: Fix two curl warnings X-Git-Tag: v259-rc1~493^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1403faeb152e24ef74230891cc6bf1875292324f;p=thirdparty%2Fsystemd.git tree-wide: Fix two curl warnings --- diff --git a/src/import/pull-job.c b/src/import/pull-job.c index a0b0ef54061..b457c39ed18 100644 --- a/src/import/pull-job.c +++ b/src/import/pull-job.c @@ -759,7 +759,7 @@ int pull_job_begin(PullJob *j) { if (curl_easy_setopt(j->curl, CURLOPT_XFERINFODATA, j) != CURLE_OK) return -EIO; - if (curl_easy_setopt(j->curl, CURLOPT_NOPROGRESS, 0) != CURLE_OK) + if (curl_easy_setopt(j->curl, CURLOPT_NOPROGRESS, 0L) != CURLE_OK) return -EIO; r = curl_glue_add(j->glue, j->curl); diff --git a/src/journal-remote/journal-upload.c b/src/journal-remote/journal-upload.c index d669d27274f..05f0dad0384 100644 --- a/src/journal-remote/journal-upload.c +++ b/src/journal-remote/journal-upload.c @@ -308,7 +308,7 @@ int start_upload(Uploader *u, } if (STRPTR_IN_SET(arg_trust, "-", "all")) - easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0, + easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L, LOG_ERR, return -EUCLEAN); else if (arg_trust || startswith(u->url, "https://")) easy_setopt(curl, CURLOPT_CAINFO, arg_trust ?: TRUST_FILE,