aboutsummaryrefslogtreecommitdiff
path: root/lib/file.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-02-09 13:06:40 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-02-09 13:06:40 +0000
commit6a2e21ec8cbaf7c719902e06953d9dbec629ad4f (patch)
treec09552b516d0d6dadc999ef446843ba32db4f1e1 /lib/file.c
parent120f17ce04794f55603a1edcd8ec8f89a09fe4ca (diff)
FTP code turned into state machine. Not completely yet, but a good start.
The tag 'before_ftp_statemachine' was set just before this commit in case of future need.
Diffstat (limited to 'lib/file.c')
-rw-r--r--lib/file.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/file.c b/lib/file.c
index 267a99ba0..5bebf3287 100644
--- a/lib/file.c
+++ b/lib/file.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2004, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2005, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -266,7 +266,7 @@ static CURLcode file_upload(struct connectdata *conn)
* opposed to sockets) we instead perform the whole do-operation in this
* function.
*/
-CURLcode Curl_file(struct connectdata *conn)
+CURLcode Curl_file(struct connectdata *conn, bool *done)
{
/* This implementation ignores the host name in conformance with
RFC 1738. Only local files (reachable via the standard file system)
@@ -286,6 +286,8 @@ CURLcode Curl_file(struct connectdata *conn)
int fd;
struct timeval now = Curl_tvnow();
+ *done = TRUE; /* unconditionally */
+
Curl_readwrite_init(conn);
Curl_initinfo(data);
Curl_pgrsStartNow(data);