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:
Daniel Stenberg 2026-01-07 14:58:17 +01:00
parent 97a02fade6
commit e3691612ea
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
3 changed files with 75 additions and 75 deletions

View file

@ -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 */