[vlc-commits] src/darwin: reformat code to fit the character limit in place in those code parts
Felix Paul Kühne
git at videolan.org
Sun Apr 14 11:47:04 CEST 2013
vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Sun Apr 14 11:46:59 2013 +0200| [f72b63df94776ef7d1b69a74ab8c7ebf91a7711b] | committer: Felix Paul Kühne
src/darwin: reformat code to fit the character limit in place in those code parts
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f72b63df94776ef7d1b69a74ab8c7ebf91a7711b
---
src/darwin/netconf.c | 32 +++++++++++++++++++++++++-------
1 file changed, 25 insertions(+), 7 deletions(-)
diff --git a/src/darwin/netconf.c b/src/darwin/netconf.c
index ebda7da..7f38825 100644
--- a/src/darwin/netconf.c
+++ b/src/darwin/netconf.c
@@ -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);
More information about the vlc-commits
mailing list