aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2000-11-22 12:51:18 +0000
committerDaniel Stenberg <daniel@haxx.se>2000-11-22 12:51:18 +0000
commitfb962a281e97c517814a473763c3f9d3115b3964 (patch)
treeaa94500f3a8532d81f7bb6296572a12d1aed6df4 /lib
parent2f6e61d5fb8c2de4208c8a84413e41efbd5eff61 (diff)
uses the new client_write() function
Diffstat (limited to 'lib')
-rw-r--r--lib/file.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/file.c b/lib/file.c
index 26d31914c..6121e1e57 100644
--- a/lib/file.c
+++ b/lib/file.c
@@ -170,10 +170,11 @@ CURLcode file(struct connectdata *conn)
Windows systems if the target is stdout. Use -O or -o parameters
to prevent CR/LF translation (this then goes to a binary mode
file descriptor). */
- if(nread != data->fwrite (buf, 1, nread, data->out)) {
- failf (data, "Failed writing output");
- return CURLE_WRITE_ERROR;
- }
+
+ res = client_write(data, CLIENTWRITE_BODY, buf, nread);
+ if(res)
+ return res;
+
now = tvnow();
if(pgrsUpdate(data))
res = CURLE_ABORTED_BY_CALLBACK;