From e698b822877898c44f0ee809b17aff8437674128 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 25 Apr 2017 10:49:53 +0200 Subject: 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. --- lib/url.c | 1 - 1 file changed, 1 deletion(-) (limited to 'lib/url.c') 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; -- cgit v1.2.3