aboutsummaryrefslogtreecommitdiff
path: root/src/setopt.c
diff options
context:
space:
mode:
authorChloe Kudryavtsev <code@toast.bunkerlabs.net>2023-03-24 11:03:31 -0400
committerChloe Kudryavtsev <code@toast.bunkerlabs.net>2023-03-24 11:03:31 -0400
commit9ec7f8360f1714922db520bab89cce212219bf93 (patch)
tree916d125e2fcc56ce024413dc8adb790246c1452b /src/setopt.c
parentnative: implement -blob (diff)
native: fix warning
"fix"
Diffstat (limited to 'src/setopt.c')
-rw-r--r--src/setopt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/setopt.c b/src/setopt.c
index 85ae3cb..da85fee 100644
--- a/src/setopt.c
+++ b/src/setopt.c
@@ -447,7 +447,7 @@ JANET_CFUN(jurl_setopt) {
JanetByteView bytes = janet_getbytes(argv, 2);
struct curl_blob blob;
blob.flags = CURL_BLOB_COPY;
- blob.data = bytes.bytes;
+ blob.data = (void*)bytes.bytes;
blob.len = bytes.len;
return jurl_geterror(
curl_easy_setopt(jurl->handle, opt->opt, &blob