aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-08-22 12:35:18 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-08-22 12:35:18 +0000
commit4459d3b4349788c61fc25a3bfdce851f3c0db505 (patch)
treeb5dc89da5fc86235ab0d760d83fc34004679ad09 /lib
parent7e7d89471a3815ee6bf479c8653cefbec9cf52d4 (diff)
have cwd_and_mkd prefixed with ftp_ to make it appear as a ftp-only
function
Diffstat (limited to 'lib')
-rw-r--r--lib/ftp.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index ed4709d92..b9380277c 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -103,7 +103,7 @@ static CURLcode ftp_sendquote(struct connectdata *conn,
struct curl_slist *quote);
static CURLcode ftp_cwd(struct connectdata *conn, char *path);
static CURLcode ftp_mkd(struct connectdata *conn, char *path);
-static CURLcode cwd_and_mkd(struct connectdata *conn, char *path);
+static CURLcode ftp_cwd_and_mkd(struct connectdata *conn, char *path);
/* easy-to-use macro: */
#define FTPSENDF(x,y,z) if((result = Curl_ftpsendf(x,y,z))) return result
@@ -1984,7 +1984,7 @@ CURLcode ftp_perform(struct connectdata *conn,
transfer is taking place, we must now get back to the original dir
where we ended up after login: */
if (conn->bits.reuse && ftp->entrypath) {
- if ((result = cwd_and_mkd(conn, ftp->entrypath)) != CURLE_OK)
+ if ((result = ftp_cwd_and_mkd(conn, ftp->entrypath)) != CURLE_OK)
return result;
}
@@ -1993,7 +1993,7 @@ CURLcode ftp_perform(struct connectdata *conn,
for (i=0; ftp->dirs[i]; i++) {
/* RFC 1738 says empty components should be respected too, but
that is plain stupid since CWD can't be used with an empty argument */
- if ((result = cwd_and_mkd(conn, ftp->dirs[i])) != CURLE_OK)
+ if ((result = ftp_cwd_and_mkd(conn, ftp->dirs[i])) != CURLE_OK)
return result;
}
}
@@ -2352,7 +2352,7 @@ CURLcode ftp_mkd(struct connectdata *conn, char *path)
*
* Send 'CWD' to the remote server to Change Working Directory. It is the ftp
* version of the unix 'cd' command. This function is only called from the
- * cwd_and_mkd() function these days.
+ * ftp_cwd_and_mkd() function these days.
*
* This function does NOT call failf().
*/
@@ -2384,7 +2384,7 @@ CURLcode ftp_cwd(struct connectdata *conn, char *path)
* have been told to allow it, then create the directory and cd to it.
*
*/
-static CURLcode cwd_and_mkd(struct connectdata *conn, char *path)
+static CURLcode ftp_cwd_and_mkd(struct connectdata *conn, char *path)
{
CURLcode result;