lib: use size_t or int etc instead of longs

Since long is not using a consistent data size in curl builds, making it
often "waste" 32 bits.

Closes #10088
This commit is contained in:
Daniel Stenberg 2022-12-13 15:02:00 +01:00
parent 58f55ba57e
commit 57d2d9b6be
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
5 changed files with 14 additions and 14 deletions

View file

@ -1166,7 +1166,7 @@ CURLcode Curl_vsetopt(struct Curl_easy *data, CURLoption option, va_list param)
break;
case CURLOPT_SOCKS5_AUTH:
data->set.socks5auth = va_arg(param, unsigned long);
data->set.socks5auth = (unsigned char)va_arg(param, unsigned long);
if(data->set.socks5auth & ~(CURLAUTH_BASIC | CURLAUTH_GSSAPI))
result = CURLE_NOT_BUILT_IN;
break;