mirror of
https://github.com/curl/curl.git
synced 2026-08-24 22:43:38 +03:00
CURLOPT: drop redundant long casts
Also: - CURLOPT_HSTS_CTRL.md: sync macro definitions with `curl/curl.h`. Perhaps it'd be better to delete copies like this? - keep existing casts within the documentation to make sure it applies to older curl versions as well. - CURLOPT_IPRESOLVE.md: re-add a long cast to man page, for consistency with the above. Closes #17791
This commit is contained in:
parent
fc98a630cf
commit
5debe7cb34
32 changed files with 43 additions and 46 deletions
|
|
@ -142,7 +142,7 @@ int main(int argc, char **argv)
|
|||
/* tell libcurl we can use "any" auth, which lets the lib pick one, but it
|
||||
also costs one extra round-trip and possibly sending of all the PUT
|
||||
data twice!!! */
|
||||
curl_easy_setopt(curl, CURLOPT_HTTPAUTH, (long)CURLAUTH_ANY);
|
||||
curl_easy_setopt(curl, CURLOPT_HTTPAUTH, CURLAUTH_ANY);
|
||||
|
||||
/* set user name and password for the authentication */
|
||||
curl_easy_setopt(curl, CURLOPT_USERPWD, "user:password");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue