From e3cefc7b6ca803e3f87dbadae54a110332778490 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 5 Jul 2012 22:41:06 +0000 Subject: - first of the /Core standard plugins; - code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@778 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/netlib/netlibautoproxy.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/modules/netlib/netlibautoproxy.cpp') diff --git a/src/modules/netlib/netlibautoproxy.cpp b/src/modules/netlib/netlibautoproxy.cpp index 37c3e88e22..e0428bf687 100644 --- a/src/modules/netlib/netlibautoproxy.cpp +++ b/src/modules/netlib/netlibautoproxy.cpp @@ -325,7 +325,7 @@ char* NetlibGetIeProxy(char *szUrl) if (bEnabled) { - for (int i = 0; i < proxyBypass.getCount(); ++i) + for (int i=0; i < proxyBypass.getCount(); ++i) { if (strcmp(proxyBypass[i], "") == 0) { @@ -399,9 +399,9 @@ void NetlibLoadIeProxy(void) if (szProxyEnd) *szProxyEnd = 0; int ind = -1; - if (strncmp(szProxy, "http=", 5) == 0) { ind = 0; szProxy += 5; } - else if (strncmp(szProxy, "https=", 6) == 0) { ind = 1; szProxy += 6; } - else if (strncmp(szProxy, "socks=", 6) == 0) { ind = 2; szProxy += 6; } + if (strncmp(szProxy, "http = ", 5) == 0) { ind = 0; szProxy += 5; } + else if (strncmp(szProxy, "https = ", 6) == 0) { ind = 1; szProxy += 6; } + else if (strncmp(szProxy, "socks = ", 6) == 0) { ind = 2; szProxy += 6; } else if (strchr(szProxy, '=')) ind = -2; if (ind != -2) @@ -447,10 +447,10 @@ void NetlibUnloadIeProxy(void) { int i; - for (i = 0; i < 3; ++i) + for (i=0; i < 3; ++i) mir_free(szProxyHost[i]); - for (i = 0; i < proxyBypass.getCount(); ++i) + for (i=0; i < proxyBypass.getCount(); ++i) mir_free(proxyBypass[i]); proxyBypass.destroy(); -- cgit v1.2.3