mirror of
https://github.com/curl/curl.git
synced 2026-08-25 19:23:32 +03:00
tidy-up: misc build, tests, lib/macos.c
- mkhelp.pl: drop unused assigment. - Makefile.mk: update a comment. - lib/macos.c: delete redundant block. - fix two typos. Closes #14558
This commit is contained in:
parent
471b11a9fd
commit
453d032b26
5 changed files with 16 additions and 19 deletions
28
lib/macos.c
28
lib/macos.c
|
|
@ -34,21 +34,19 @@
|
|||
|
||||
CURLcode Curl_macos_init(void)
|
||||
{
|
||||
{
|
||||
/*
|
||||
* The automagic conversion from IPv4 literals to IPv6 literals only
|
||||
* works if the SCDynamicStoreCopyProxies system function gets called
|
||||
* first. As Curl currently does not support system-wide HTTP proxies, we
|
||||
* therefore do not use any value this function might return.
|
||||
*
|
||||
* This function is only available on macOS and is not needed for
|
||||
* IPv4-only builds, hence the conditions for defining
|
||||
* CURL_MACOS_CALL_COPYPROXIES in curl_setup.h.
|
||||
*/
|
||||
CFDictionaryRef dict = SCDynamicStoreCopyProxies(NULL);
|
||||
if(dict)
|
||||
CFRelease(dict);
|
||||
}
|
||||
/*
|
||||
* The automagic conversion from IPv4 literals to IPv6 literals only
|
||||
* works if the SCDynamicStoreCopyProxies system function gets called
|
||||
* first. As Curl currently does not support system-wide HTTP proxies, we
|
||||
* therefore do not use any value this function might return.
|
||||
*
|
||||
* This function is only available on macOS and is not needed for
|
||||
* IPv4-only builds, hence the conditions for defining
|
||||
* CURL_MACOS_CALL_COPYPROXIES in curl_setup.h.
|
||||
*/
|
||||
CFDictionaryRef dict = SCDynamicStoreCopyProxies(NULL);
|
||||
if(dict)
|
||||
CFRelease(dict);
|
||||
return CURLE_OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue