aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2000-11-29 08:16:27 +0000
committerDaniel Stenberg <daniel@haxx.se>2000-11-29 08:16:27 +0000
commit9980568f42a8954e74171f25d416ba39131ee2c9 (patch)
tree5ea9e072dc4a8fbc3d4b04b5c2320c2bd6129a41 /lib
parent05a1910968b88a791085074a5375a6024242a33e (diff)
removed '#if 0' sections
Diffstat (limited to 'lib')
-rw-r--r--lib/url.c57
1 files changed, 0 insertions, 57 deletions
diff --git a/lib/url.c b/lib/url.c
index 2d88aa495..006644f41 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -298,13 +298,6 @@ CURLcode curl_open(CURL **curl, char *url)
data-> headersize=HEADERSIZE;
-#if 0
- /* Let's set some default values: */
- curl_setopt(data, CURLOPT_FILE, stdout); /* default output to stdout */
- curl_setopt(data, CURLOPT_INFILE, stdin); /* default input from stdin */
- curl_setopt(data, CURLOPT_STDERR, stderr); /* default stderr to stderr! */
-#endif
-
data->out = stdout; /* default output to stdout */
data->in = stdin; /* default input from stdin */
data->err = stderr; /* default stderr to stderr */
@@ -521,11 +514,6 @@ CURLcode curl_setopt(CURL *curl, CURLoption option, ...)
case CURLOPT_WRITEFUNCTION:
data->fwrite = va_arg(param, curl_write_callback);
break;
-#if 0
- case CURLOPT_WRITEINFO:
- data->writeinfo = va_arg(param, char *);
- break;
-#endif
case CURLOPT_READFUNCTION:
data->fread = va_arg(param, curl_read_callback);
break;
@@ -1161,12 +1149,6 @@ static CURLcode _connect(CURL *curl, CURLconnect **in_connect)
user+password pair in a string like:
ftp://user:password@ftp.my.site:8021/README */
char *ptr=NULL; /* assign to remove possible warnings */
-#if 0
- if(':' == *conn->name) {
- failf(data, "URL malformat: user can't be zero length");
- return CURLE_URL_MALFORMAT_USER;
- }
-#endif
if((ptr=strchr(conn->name, '@'))) {
/* there's a user+password given here, to the left of the @ */
@@ -1396,23 +1378,6 @@ static CURLcode _connect(CURL *curl, CURLconnect **in_connect)
case ENOMEM:
failf(data, "Insufficient kernel memory was available: %d", errno);
break;
-#if 0
- case EROFS:
- failf(data,
- "Socket inode would reside on a read-only file system: %d",
- errno);
- break;
- case ENOENT:
- failf(data, "File does not exist: %d", errno);
- break;
- case ENOTDIR:
- failf(data, "Component of path prefix is not a directory: %d",
- errno);
- break;
- case ELOOP:
- failf(data,"Too many symbolic links encountered: %d",errno);
- break;
-#endif
default:
failf(data,"errno %d\n");
} /* end of switch */
@@ -1481,17 +1446,6 @@ static CURLcode _connect(CURL *curl, CURLconnect **in_connect)
case EINTR:
failf(data, "Connection timeouted");
break;
-#if 0
- case EAFNOSUPPORT:
- failf(data, "Incorrect address family: %d",errno);
- break;
- case ENOTSOCK:
- failf(data, "File descriptor is not a socket: %d",errno);
- break;
- case EBADF:
- failf(data, "File descriptor is not a valid index in descriptor table: %d",errno);
- break;
-#endif
default:
failf(data, "Can't connect to server: %d", errno);
break;
@@ -1538,10 +1492,6 @@ static CURLcode _connect(CURL *curl, CURLconnect **in_connect)
infof(data, "Connected to %s (%s)\n", conn->hp->h_name, inet_ntoa(in));
}
-#if 0 /* Kerberos experiements! Beware! Take cover! */
- kerberos_connect(data, name);
-#endif
-
#ifdef __EMX__
/* 20000330 mgs
* the check is quite a hack...
@@ -1654,13 +1604,6 @@ CURLcode curl_do(CURLconnect *in_conn)
conn->state = CONN_DO; /* we have entered this state */
-#if 0
- if(conn->bytecount) {
- double ittook = tvdiff (tvnow(), conn->now);
- infof(data, "%i bytes transfered in %.3lf seconds (%.0lf bytes/sec).\n",
- conn->bytecount, ittook, (double)conn->bytecount/(ittook!=0.0?ittook:1));
- }
-#endif
return CURLE_OK;
}