Renamed several libcurl error codes and options to make them more general

and allow reuse by multiple protocols. Several unused error codes were
removed.  In all cases, macros were added to preserve source (and binary)
compatibility with the old names.  These macros are subject to removal at
a future date, but probably not before 2009.  An application can be
tested to see if it is using any obsolete code by compiling it with the
CURL_NO_OLDIES macro defined.

Documented some newer error codes in libcurl-error(3)
This commit is contained in:
Dan Fandrich
2007-08-30 20:34:57 +00:00
parent 4b60c3e9d3
commit 9f44a95522
29 changed files with 341 additions and 275 deletions

View File

@@ -1182,7 +1182,7 @@ CURLcode Curl_readwrite(struct connectdata *conn,
* wasn't a GET we did a POST or PUT resume) */
failf(data, "HTTP server doesn't seem to support "
"byte ranges. Cannot resume.");
return CURLE_HTTP_RANGE_ERROR;
return CURLE_RANGE_ERROR;
}
if(data->set.timecondition && !data->reqdata.range) {
@@ -1591,7 +1591,7 @@ CURLcode Curl_readwrite(struct connectdata *conn,
FORMAT_OFF_T " bytes received",
data->set.timeout, k->bytecount);
}
return CURLE_OPERATION_TIMEOUTED;
return CURLE_OPERATION_TIMEDOUT;
}
if(!k->keepon) {