]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tree-wide: Fix two curl warnings
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 19 Sep 2025 09:29:36 +0000 (11:29 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 19 Sep 2025 09:32:04 +0000 (11:32 +0200)
src/import/pull-job.c
src/journal-remote/journal-upload.c

index a0b0ef54061b9a18a0a5bea2276c17de37f0e164..b457c39ed180003d65c3dedb086c3c95963ae5ee 100644 (file)
@@ -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);
index d669d27274f6abe52b03f5960a6d7097f5de572c..05f0dad03844954b85200a6711877a7239e6641f 100644 (file)
@@ -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,