From 0430c36a0869fe7f47c1f156ca769512d2fb4a7d Mon Sep 17 00:00:00 2001 From: Joris Vink Date: Mon, 21 Oct 2019 21:20:16 +0200 Subject: [PATCH] Adjust for new kore_curl_init() --- examples/async-curl/src/ftp.c | 2 +- examples/async-curl/src/http.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/async-curl/src/ftp.c b/examples/async-curl/src/ftp.c index 97470aa..ab5736e 100644 --- a/examples/async-curl/src/ftp.c +++ b/examples/async-curl/src/ftp.c @@ -47,7 +47,7 @@ state_setup(struct http_request *req) client = http_state_create(req, sizeof(*client), NULL); if (!kore_curl_init(client, - "http://ftp.eu.openbsd.org/pub/OpenBSD/README")) { + "http://ftp.eu.openbsd.org/pub/OpenBSD/README", KORE_CURL_ASYNC)) { http_response(req, 500, NULL, 0); return (HTTP_STATE_COMPLETE); } diff --git a/examples/async-curl/src/http.c b/examples/async-curl/src/http.c index 6ecc433..a05514b 100644 --- a/examples/async-curl/src/http.c +++ b/examples/async-curl/src/http.c @@ -62,7 +62,7 @@ state_setup(struct http_request *req) client = http_state_create(req, sizeof(*client), NULL); /* Initialize curl. */ - if (!kore_curl_init(client, "https://kore.io")) { + if (!kore_curl_init(client, "https://kore.io", KORE_CURL_ASYNC)) { http_response(req, 500, NULL, 0); return (HTTP_STATE_COMPLETE); }