]> granicus.if.org Git - curl/commit
transfer: remove 'uploadbuf' pointer and cleanup readwrite_upload()
authorDaniel Stenberg <daniel@haxx.se>
Tue, 25 Apr 2017 08:49:53 +0000 (10:49 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 25 Apr 2017 08:55:35 +0000 (10:55 +0200)
commite698b822877898c44f0ee809b17aff8437674128
tree1d8404a9f6af899d8145f0ee023d798811f21fad
parent338f427a24f78a717888c7c2b6b91fa831bea28e
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/transfer.c
lib/url.c
lib/urldata.h