mirror of
https://github.com/curl/curl.git
synced 2026-08-01 20:40:28 +03:00
urldata: switch to uint* types more widely
In particular, it turns 'unsigned long' into 'uint32_t' since the code needs to build and run just as fine on Windows which has 32 bit longs, so we know the code works with 32 bit field versions. This makes Curl_easy 56 bytes smaller on my 64 bit Linux (maximized build). Closes #20209
This commit is contained in:
parent
97a02fade6
commit
e3691612ea
3 changed files with 75 additions and 75 deletions
|
|
@ -269,9 +269,9 @@ static CURLcode httpauth(struct Curl_easy *data, bool proxy,
|
|||
return CURLE_NOT_BUILT_IN; /* no supported types left! */
|
||||
}
|
||||
if(proxy)
|
||||
data->set.proxyauth = auth;
|
||||
data->set.proxyauth = (uint32_t)auth;
|
||||
else
|
||||
data->set.httpauth = auth;
|
||||
data->set.httpauth = (uint32_t)auth;
|
||||
return CURLE_OK;
|
||||
}
|
||||
#endif /* !CURL_DISABLE_HTTP || !CURL_DISABLE_PROXY */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue