urldata: make 'use_netrc' a uchar

Closes #9102
This commit is contained in:
Daniel Stenberg 2022-07-04 15:03:35 +02:00
parent 3fa343a35c
commit fe14ff6150
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
2 changed files with 2 additions and 3 deletions

View File

@ -426,7 +426,7 @@ CURLcode Curl_vsetopt(struct Curl_easy *data, CURLoption option, va_list param)
arg = va_arg(param, long); arg = va_arg(param, long);
if((arg < CURL_NETRC_IGNORED) || (arg >= CURL_NETRC_LAST)) if((arg < CURL_NETRC_IGNORED) || (arg >= CURL_NETRC_LAST))
return CURLE_BAD_FUNCTION_ARGUMENT; return CURLE_BAD_FUNCTION_ARGUMENT;
data->set.use_netrc = (enum CURL_NETRC_OPTION)arg; data->set.use_netrc = (unsigned char)arg;
break; break;
case CURLOPT_NETRC_FILE: case CURLOPT_NETRC_FILE:
/* /*

View File

@ -1769,8 +1769,7 @@ struct UserDefined {
curl_sshkeycallback ssh_keyfunc; /* key matching callback */ curl_sshkeycallback ssh_keyfunc; /* key matching callback */
void *ssh_keyfunc_userp; /* custom pointer to callback */ void *ssh_keyfunc_userp; /* custom pointer to callback */
#ifndef CURL_DISABLE_NETRC #ifndef CURL_DISABLE_NETRC
enum CURL_NETRC_OPTION unsigned char use_netrc; /* enum CURL_NETRC_OPTION values */
use_netrc; /* defined in include/curl.h */
#endif #endif
curl_usessl use_ssl; /* if AUTH TLS is to be attempted etc, for FTP or curl_usessl use_ssl; /* if AUTH TLS is to be attempted etc, for FTP or
IMAP or POP3 or others! */ IMAP or POP3 or others! */