Commit f72b63df authored by Felix Paul Kühne's avatar Felix Paul Kühne

src/darwin: reformat code to fit the character limit in place in those code parts

parent b3efcf71
......@@ -43,25 +43,43 @@ char *vlc_getProxyUrl(const char *url)
char *proxy_url = NULL;
if (proxies) {
CFNumberRef cfn_httpProxyOn = (CFNumberRef)CFDictionaryGetValue(proxies, kSCPropNetProxiesHTTPEnable);
CFNumberRef cfn_httpProxyOn =
(CFNumberRef)CFDictionaryGetValue(proxies,
kSCPropNetProxiesHTTPEnable);
int i_httpProxyOn;
CFNumberGetValue(cfn_httpProxyOn, kCFNumberIntType, &i_httpProxyOn);
CFRelease(cfn_httpProxyOn);
if (i_httpProxyOn == 1) // http proxy is on
{
CFStringRef httpProxy = (CFStringRef)CFDictionaryGetValue(proxies, kSCPropNetProxiesHTTPProxy);
CFStringRef httpProxy =
(CFStringRef)CFDictionaryGetValue(proxies,
kSCPropNetProxiesHTTPProxy);
if (httpProxy) {
CFNumberRef cfn_httpProxyPort = (CFNumberRef)CFDictionaryGetValue(proxies, kSCPropNetProxiesHTTPPort);
CFNumberRef cfn_httpProxyPort =
(CFNumberRef)CFDictionaryGetValue(proxies,
kSCPropNetProxiesHTTPPort);
int i_httpProxyPort;
CFNumberGetValue(cfn_httpProxyPort, kCFNumberIntType, &i_httpProxyPort);
CFNumberGetValue(cfn_httpProxyPort,
kCFNumberIntType,
&i_httpProxyPort);
CFRelease(cfn_httpProxyPort);
CFMutableStringRef outputURL = CFStringCreateMutableCopy(kCFAllocatorDefault, 0, httpProxy);
CFMutableStringRef outputURL =
CFStringCreateMutableCopy(kCFAllocatorDefault,
0,
httpProxy);
if (i_httpProxyPort > 0)
CFStringAppendFormat(outputURL,NULL,CFSTR(":%i"),i_httpProxyPort);
CFStringAppendFormat(outputURL,
NULL,
CFSTR(":%i"),
i_httpProxyPort);
CFStringGetCString(outputURL, proxy_url, sizeof(proxy_url), kCFStringEncodingASCII);
CFStringGetCString(outputURL,
proxy_url,
sizeof(proxy_url),
kCFStringEncodingASCII);
CFRelease(outputURL);
}
CFRelease(httpProxy);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment