]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
curl-util: fix type CURL -> CURLM
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 20 Nov 2020 16:51:03 +0000 (01:51 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 20 Nov 2020 16:55:31 +0000 (01:55 +0900)
src/import/curl-util.c
src/import/curl-util.h

index bb81f97b0934af8d347f0208cea829f6613d33ae..f29d09d3aa3ac99104633f6b05c22a9c6b25233c 100644 (file)
@@ -178,7 +178,7 @@ CurlGlue *curl_glue_unref(CurlGlue *g) {
 
 int curl_glue_new(CurlGlue **glue, sd_event *event) {
         _cleanup_(curl_glue_unrefp) CurlGlue *g = NULL;
-        _cleanup_(curl_multi_cleanupp) CURL *c = NULL;
+        _cleanup_(curl_multi_cleanupp) CURLM *c = NULL;
         _cleanup_(sd_event_unrefp) sd_event *e = NULL;
         int r;
 
index f4a882d2342fd87277c89414d056e63290573090..4ab52d73a4f1b5becb0318838d2ba53f1ac2abbe 100644 (file)
@@ -35,5 +35,5 @@ int curl_header_strdup(const void *contents, size_t sz, const char *field, char
 int curl_parse_http_time(const char *t, usec_t *ret);
 
 DEFINE_TRIVIAL_CLEANUP_FUNC(CURL*, curl_easy_cleanup);
-DEFINE_TRIVIAL_CLEANUP_FUNC(CURL*, curl_multi_cleanup);
+DEFINE_TRIVIAL_CLEANUP_FUNC(CURLM*, curl_multi_cleanup);
 DEFINE_TRIVIAL_CLEANUP_FUNC(struct curl_slist*, curl_slist_free_all);