summaryrefslogtreecommitdiff
path: root/lib/url.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2017-04-25 10:49:53 +0200
committerDaniel Stenberg <daniel@haxx.se>2017-04-25 10:55:35 +0200
commite698b822877898c44f0ee809b17aff8437674128 (patch)
tree1d8404a9f6af899d8145f0ee023d798811f21fad /lib/url.c
parent338f427a24f78a717888c7c2b6b91fa831bea28e (diff)
downloadcurl-e698b822877898c44f0ee809b17aff8437674128.tar.gz
transfer: remove 'uploadbuf' pointer and cleanup readwrite_upload()
The data->req.uploadbuf struct member served no good purpose, instead we use ->state.uploadbuffer directly. It makes it clearer in the code which buffer that's being used. Removed the 'SingleRequest *' argument from the readwrite_upload() proto as it can be derived from the Curl_easy struct. Also made the code in the readwrite_upload() function use the 'k->' shortcut to all references to struct fields in 'data->req', which previously was made with a mix of both.
Diffstat (limited to 'lib/url.c')
-rw-r--r--lib/url.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/url.c b/lib/url.c
index caa28f5d4..19388437a 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -6961,7 +6961,6 @@ CURLcode Curl_init_do(struct Curl_easy *data, struct connectdata *conn)
k->bytecount = 0;
k->buf = data->state.buffer;
- k->uploadbuf = data->state.uploadbuffer;
k->hbufp = data->state.headerbuff;
k->ignorebody=FALSE;