diff options
Diffstat (limited to 'docs/libcurl/opts/CURLOPT_PREQUOTE.3')
-rw-r--r-- | docs/libcurl/opts/CURLOPT_PREQUOTE.3 | 6 |
1 files changed, 3 insertions, 3 deletions
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); |