aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2007-07-13 20:04:53 +0000
committerDaniel Stenberg <daniel@haxx.se>2007-07-13 20:04:53 +0000
commitcf5378b366258ab7ec9cbd03eef26b852e454745 (patch)
tree8628d920d6b6c547346116e954cff0124620d1f3 /lib
parentfea938cbcbe12394ecb93ba49a4d37d76e851bd4 (diff)
Daniel Cater made libcurl build with CURL_NO_OLDIES defined (which doesn't
define the symbols for backwards source compatibility)
Diffstat (limited to 'lib')
-rw-r--r--lib/connect.c10
-rw-r--r--lib/ftp.c4
2 files changed, 7 insertions, 7 deletions
diff --git a/lib/connect.c b/lib/connect.c
index ffce3dad5..65b2878b3 100644
--- a/lib/connect.c
+++ b/lib/connect.c
@@ -288,7 +288,7 @@ static CURLcode bindlocal(struct connectdata *conn,
sizeof(hostent_buf));
*/
failf(data, "Couldn't bind to '%s'", data->set.device);
- return CURLE_HTTP_PORT_FAILED;
+ return CURLE_INTERFACE_FAILED;
}
infof(data, "Bind local address to %s\n", myhost);
@@ -325,7 +325,7 @@ static CURLcode bindlocal(struct connectdata *conn,
#endif
if (CURL_INADDR_NONE == in && -1 == in6) {
failf(data,"couldn't find my own IP address (%s)", myhost);
- return CURLE_HTTP_PORT_FAILED;
+ return CURLE_INTERFACE_FAILED;
} /* end of inet_addr */
if ( h ) {
@@ -334,7 +334,7 @@ static CURLcode bindlocal(struct connectdata *conn,
socksize = addr->ai_addrlen;
}
else
- return CURLE_HTTP_PORT_FAILED;
+ return CURLE_INTERFACE_FAILED;
}
else if(port) {
@@ -370,7 +370,7 @@ static CURLcode bindlocal(struct connectdata *conn,
size = sizeof(add);
if(getsockname(sockfd, (struct sockaddr *) &add, &size) < 0) {
failf(data, "getsockname() failed");
- return CURLE_HTTP_PORT_FAILED;
+ return CURLE_INTERFACE_FAILED;
}
/* We re-use/clobber the port variable here below */
if(((struct sockaddr *)&add)->sa_family == AF_INET)
@@ -393,7 +393,7 @@ static CURLcode bindlocal(struct connectdata *conn,
data->state.os_errno = SOCKERRNO;
failf(data, "bind failure: %s",
Curl_strerror(conn, data->state.os_errno));
- return CURLE_HTTP_PORT_FAILED;
+ return CURLE_INTERFACE_FAILED;
}
diff --git a/lib/ftp.c b/lib/ftp.c
index 91f6d91f7..61e795881 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -2157,7 +2157,7 @@ static CURLcode ftp_state_stor_resp(struct connectdata *conn,
if(ftpcode>=400) {
failf(data, "Failed FTP upload: %0d", ftpcode);
/* oops, we never close the sockets! */
- return CURLE_FTP_COULDNT_STOR_FILE;
+ return CURLE_UPLOAD_FAILED;
}
if(data->set.ftp_use_port) {
@@ -3055,7 +3055,7 @@ CURLcode Curl_ftp_done(struct connectdata *conn, CURLcode status, bool premature
case CURLE_FTP_PORT_FAILED:
case CURLE_FTP_COULDNT_SET_BINARY:
case CURLE_FTP_COULDNT_RETR_FILE:
- case CURLE_FTP_COULDNT_STOR_FILE:
+ case CURLE_UPLOAD_FAILED:
case CURLE_FTP_ACCESS_DENIED:
case CURLE_FILESIZE_EXCEEDED:
/* the connection stays alive fine even though this happened */