[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnurl] 07/18: CURLOPT_QUOTE.3: fix typos
From: |
gnunet |
Subject: |
[gnurl] 07/18: CURLOPT_QUOTE.3: fix typos |
Date: |
Fri, 20 Dec 2019 14:49:09 +0100 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to branch master
in repository gnurl.
commit c1592cc92b92d52835af96ecfd52c08a9e2b48c6
Author: Jay Satiro <address@hidden>
AuthorDate: Wed Dec 18 15:21:36 2019 -0500
CURLOPT_QUOTE.3: fix typos
Prior to this change the EXAMPLE in the QUOTE/PREQUOTE/POSTQUOTE man
pages would not compile because a variable name was incorrect.
Reported-by: address@hidden
Fixes https://github.com/curl/curl/issues/4736
---
docs/libcurl/opts/CURLOPT_POSTQUOTE.3 | 8 ++++----
docs/libcurl/opts/CURLOPT_PREQUOTE.3 | 6 +++---
docs/libcurl/opts/CURLOPT_QUOTE.3 | 8 ++++----
3 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/docs/libcurl/opts/CURLOPT_POSTQUOTE.3
b/docs/libcurl/opts/CURLOPT_POSTQUOTE.3
index 8af7ffdd0..c7bd778a8 100644
--- a/docs/libcurl/opts/CURLOPT_POSTQUOTE.3
+++ b/docs/libcurl/opts/CURLOPT_POSTQUOTE.3
@@ -40,16 +40,16 @@ NULL
SFTP and FTP
.SH EXAMPLE
.nf
-struct curl_slist *h = NULL;
-h = curl_slist_append(h, "RNFR source-name");
-h = curl_slist_append(h, "RNTO new-name");
+struct curl_slist *cmdlist = NULL;
+cmdlist = curl_slist_append(cmdlist, "RNFR source-name");
+cmdlist = curl_slist_append(cmdlist, "RNTO new-name");
curl = curl_easy_init();
if(curl) {
curl_easy_setopt(curl, CURLOPT_URL, "ftp://example.com/foo.bin");
/* pass in the FTP commands to run after the transfer */
- curl_easy_setopt(curl, CURLOPT_POSTQUOTE, headerlist);
+ curl_easy_setopt(curl, CURLOPT_POSTQUOTE, cmdlist);
ret = curl_easy_perform(curl);
diff --git a/docs/libcurl/opts/CURLOPT_PREQUOTE.3
b/docs/libcurl/opts/CURLOPT_PREQUOTE.3
index 77da3908a..454771898 100644
--- a/docs/libcurl/opts/CURLOPT_PREQUOTE.3
+++ b/docs/libcurl/opts/CURLOPT_PREQUOTE.3
@@ -43,15 +43,15 @@ NULL
FTP
.SH EXAMPLE
.nf
-struct curl_slist *h = NULL;
-h = curl_slist_append(h, "SYST");
+struct curl_slist *cmdlist = NULL;
+cmdlist = curl_slist_append(cmdlist, "SYST");
curl = curl_easy_init();
if(curl) {
curl_easy_setopt(curl, CURLOPT_URL, "ftp://example.com/foo.bin");
/* pass in the FTP commands to run */
- curl_easy_setopt(curl, CURLOPT_PREQUOTE, headerlist);
+ curl_easy_setopt(curl, CURLOPT_PREQUOTE, cmdlist);
ret = curl_easy_perform(curl);
diff --git a/docs/libcurl/opts/CURLOPT_QUOTE.3
b/docs/libcurl/opts/CURLOPT_QUOTE.3
index b547a1635..86cf63067 100644
--- a/docs/libcurl/opts/CURLOPT_QUOTE.3
+++ b/docs/libcurl/opts/CURLOPT_QUOTE.3
@@ -81,16 +81,16 @@ NULL
SFTP and FTP
.SH EXAMPLE
.nf
-struct curl_slist *h = NULL;
-h = curl_slist_append(h, "RNFR source-name");
-h = curl_slist_append(h, "RNTO new-name");
+struct curl_slist *cmdlist = NULL;
+cmdlist = curl_slist_append(cmdlist, "RNFR source-name");
+cmdlist = curl_slist_append(cmdlist, "RNTO new-name");
curl = curl_easy_init();
if(curl) {
curl_easy_setopt(curl, CURLOPT_URL, "ftp://example.com/foo.bin");
/* pass in the FTP commands to run before the transfer */
- curl_easy_setopt(curl, CURLOPT_QUOTE, headerlist);
+ curl_easy_setopt(curl, CURLOPT_QUOTE, cmdlist);
ret = curl_easy_perform(curl);
--
To stop receiving notification emails like this one, please contact
address@hidden.
- [gnurl] branch master updated (486ada36f -> 71b588320), gnunet, 2019/12/20
- [gnurl] 03/18: CURLOPT_URL.3: "curl supports SMB version 1 (only)", gnunet, 2019/12/20
- [gnurl] 01/18: HISTORY: the SMB(S) support landed in 2014, gnunet, 2019/12/20
- [gnurl] 10/18: curl.h: add two defines for the "pre ISO C" case, gnunet, 2019/12/20
- [gnurl] 02/18: test1270: a basic -w redirect_url test, gnunet, 2019/12/20
- [gnurl] 06/18: strerror: Fix compiler warning "empty expression", gnunet, 2019/12/20
- [gnurl] 07/18: CURLOPT_QUOTE.3: fix typos,
gnunet <=
- [gnurl] 08/18: test1456: remove the use of a fixed local port, gnunet, 2019/12/20
- [gnurl] 05/18: curl/parseconfig: use curl_free() to free memory allocated by libcurl, gnunet, 2019/12/20
- [gnurl] 04/18: curl/parseconfig: fix mem-leak, gnunet, 2019/12/20
- [gnurl] 09/18: create_conn: prefer multiplexing to using new connections, gnunet, 2019/12/20
- [gnurl] 16/18: HISTORY: OSS-Fuzz started fuzzing libcurl in 2017, gnunet, 2019/12/20
- [gnurl] 11/18: test165: set LC_ALL=en_US.UTF-8 too, gnunet, 2019/12/20
- [gnurl] 13/18: sws: search for "Testno:" header uncondtionally if no testno, gnunet, 2019/12/20
- [gnurl] 17/18: examples/url2file.c: corrected a comment, gnunet, 2019/12/20
- [gnurl] 12/18: tests: set LC_ALL in more tests, gnunet, 2019/12/20
- [gnurl] 14/18: ngtcp2: Support the latest update key callback type, gnunet, 2019/12/20