[117023] trunk/base/src/pextlib1.0/curl.c
cal at macports.org
cal at macports.org
Wed Feb 12 15:57:29 PST 2014
Revision: 117023
https://trac.macports.org/changeset/117023
Author: cal at macports.org
Date: 2014-02-12 15:57:29 -0800 (Wed, 12 Feb 2014)
Log Message:
-----------
pextlib1.0/curl.c: unify whitespace
Modified Paths:
--------------
trunk/base/src/pextlib1.0/curl.c
Modified: trunk/base/src/pextlib1.0/curl.c
===================================================================
--- trunk/base/src/pextlib1.0/curl.c 2014-02-12 23:55:31 UTC (rev 117022)
+++ trunk/base/src/pextlib1.0/curl.c 2014-02-12 23:57:29 UTC (rev 117023)
@@ -51,7 +51,7 @@
/*
* Some compiled-in constants that we may wish to change later, given more
- * empirical data. These represent "best guess" values for now.
+ * empirical data. These represent "best guess" values for now.
*/
#define _CURL_CONNECTION_TIMEOUT ((long)(30)) /* 30 seconds */
#define _CURL_MINIMUM_XFER_SPEED ((long)1024) /* 1KB/sec */
@@ -250,17 +250,17 @@
}
#if LIBCURL_VERSION_NUM >= 0x071304 && LIBCURL_VERSION_NUM <= 0x071307
- /* FTP_PROXY workaround for Snow Leopard */
- if (strncmp(theURL, "ftp:", 4) == 0) {
- char *ftp_proxy = getenv("FTP_PROXY");
- if (ftp_proxy) {
- theCurlCode = curl_easy_setopt(theHandle, CURLOPT_PROXY, ftp_proxy);
- if (theCurlCode != CURLE_OK) {
- theResult = SetResultFromCurlErrorCode(interp, theCurlCode);
- break;
- }
- }
- }
+ /* FTP_PROXY workaround for Snow Leopard */
+ if (strncmp(theURL, "ftp:", 4) == 0) {
+ char *ftp_proxy = getenv("FTP_PROXY");
+ if (ftp_proxy) {
+ theCurlCode = curl_easy_setopt(theHandle, CURLOPT_PROXY, ftp_proxy);
+ if (theCurlCode != CURLE_OK) {
+ theResult = SetResultFromCurlErrorCode(interp, theCurlCode);
+ break;
+ }
+ }
+ }
#endif
/* -L option */
@@ -755,7 +755,7 @@
}
optioncrsr++;
- }
+ }
if (optioncrsr <= lastoption) {
/* something went wrong */
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140212/0d38e700/attachment.html>
More information about the macports-changes
mailing list