summaryrefslogtreecommitdiff
path: root/lib/setopt.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2022-07-04 15:03:35 +0200
committerDaniel Stenberg <daniel@haxx.se>2022-07-04 23:04:24 +0200
commitfe14ff615011577f76cf3bbca8817757db00c3cd (patch)
tree05edf1a9f6d33c444c72e753132181d33c70f376 /lib/setopt.c
parent3fa343a35c9d65ebbcad5d028bbd6f14cde1af00 (diff)
downloadcurl-fe14ff615011577f76cf3bbca8817757db00c3cd.tar.gz
urldata: make 'use_netrc' a uchar
Closes #9102
Diffstat (limited to 'lib/setopt.c')
-rw-r--r--lib/setopt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/setopt.c b/lib/setopt.c
index ba36b495c..d8bcbd373 100644
--- a/lib/setopt.c
+++ b/lib/setopt.c
@@ -426,7 +426,7 @@ CURLcode Curl_vsetopt(struct Curl_easy *data, CURLoption option, va_list param)
arg = va_arg(param, long);
if((arg < CURL_NETRC_IGNORED) || (arg >= CURL_NETRC_LAST))
return CURLE_BAD_FUNCTION_ARGUMENT;
- data->set.use_netrc = (enum CURL_NETRC_OPTION)arg;
+ data->set.use_netrc = (unsigned char)arg;
break;
case CURLOPT_NETRC_FILE:
/*