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/urldata.h | 1 - 1 file changed, 1 deletion(-) (limited to 'lib/urldata.h') diff --git a/lib/urldata.h b/lib/urldata.h index d4a4a2306..f7a55e15e 100644 --- a/lib/urldata.h +++ b/lib/urldata.h @@ -721,7 +721,6 @@ struct SingleRequest { long bodywrites; char *buf; - char *uploadbuf; curl_socket_t maxfd; int keepon; -- cgit v1.2.3