summaryrefslogtreecommitdiff
path: root/lib/ftp.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2018-06-12 00:10:43 +0200
committerDaniel Stenberg <daniel@haxx.se>2018-06-12 12:03:38 +0200
commitd9d099cae6b8889d007a0cdff02444a87cd4ad90 (patch)
treebf2a748fc0ef388e9bba5ab31edcac7c659af616 /lib/ftp.c
parentf508d29f3902104018c03dfe779a2a70c1e40cc0 (diff)
downloadcurl-bagder/remove-printhost.tar.gz
Curl_debug: remove dead printhost codebagder/remove-printhost
The struct field is never set (since 5e0d9aea3) so remove the use of it and remove the connectdata pointer from the prototype. Reported-by: Tejas Bug: https://curl.haxx.se/mail/lib-2018-06/0054.html Closes #2647
Diffstat (limited to 'lib/ftp.c')
-rw-r--r--lib/ftp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index 75607217f..7dbf08004 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -3991,8 +3991,7 @@ CURLcode Curl_ftpsend(struct connectdata *conn, const char *cmd)
break;
if(conn->data->set.verbose)
- Curl_debug(conn->data, CURLINFO_HEADER_OUT,
- sptr, (size_t)bytes_written, conn);
+ Curl_debug(conn->data, CURLINFO_HEADER_OUT, sptr, (size_t)bytes_written);
if(bytes_written != (ssize_t)write_len) {
write_len -= bytes_written;