summaryrefslogtreecommitdiff
path: root/lib/gopher.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-09-28 14:14:25 +0200
committerDaniel Stenberg <daniel@haxx.se>2020-09-28 17:05:53 +0200
commita87cca7b1cbec0b4206b2bb1cb074a8a4a5bd151 (patch)
tree0a1cf87cc2beedac306e115ac54998daf197fe9b /lib/gopher.c
parent422b257fef11a378e6cdce02174672cc6549d20d (diff)
downloadcurl-a87cca7b1cbec0b4206b2bb1cb074a8a4a5bd151.tar.gz
sendf: move Curl_sendf to dict.c and make it static
... as the only remaining user of that function. Also fix gopher.c to instead use Curl_write() Closes #6020
Diffstat (limited to 'lib/gopher.c')
-rw-r--r--lib/gopher.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/gopher.c b/lib/gopher.c
index 4f5ba99bb..ce7413133 100644
--- a/lib/gopher.c
+++ b/lib/gopher.c
@@ -171,9 +171,7 @@ static CURLcode gopher_do(struct connectdata *conn, bool *done)
free(sel_org);
if(!result)
- /* We can use Curl_sendf to send the terminal \r\n relatively safely and
- save allocing another string/doing another _write loop. */
- result = Curl_sendf(sockfd, conn, "\r\n");
+ result = Curl_write(conn, sockfd, "\r\n", 2, &amount);
if(result) {
failf(data, "Failed sending Gopher request");
return result;