mirror of
https://github.com/curl/curl.git
synced 2026-08-26 00:33:34 +03:00
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:
parent
58f55ba57e
commit
57d2d9b6be
5 changed files with 14 additions and 14 deletions
|
|
@ -526,10 +526,11 @@ static CURLproxycode do_SOCKS5(struct Curl_cfilter *cf,
|
|||
(conn->socks_proxy.proxytype == CURLPROXY_SOCKS5) ? TRUE : FALSE;
|
||||
const size_t hostname_len = strlen(sx->hostname);
|
||||
ssize_t len = 0;
|
||||
const unsigned long auth = data->set.socks5auth;
|
||||
const unsigned char auth = data->set.socks5auth;
|
||||
bool allow_gssapi = FALSE;
|
||||
struct Curl_dns_entry *dns = NULL;
|
||||
|
||||
DEBUGASSERT(auth & (CURLAUTH_BASIC | CURLAUTH_GSSAPI));
|
||||
switch(sx->state) {
|
||||
case CONNECT_SOCKS_INIT:
|
||||
if(conn->bits.httpproxy)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue