aboutsummaryrefslogtreecommitdiff
path: root/docs/examples/httpput.c
diff options
context:
space:
mode:
Diffstat (limited to 'docs/examples/httpput.c')
-rw-r--r--docs/examples/httpput.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/examples/httpput.c b/docs/examples/httpput.c
index 5b92548a5..585dfa2cc 100644
--- a/docs/examples/httpput.c
+++ b/docs/examples/httpput.c
@@ -76,14 +76,14 @@ int main(int argc, char **argv)
curl_easy_setopt(curl, CURLOPT_READFUNCTION, read_callback);
/* enable uploading */
- curl_easy_setopt(curl, CURLOPT_UPLOAD, 1) ;
+ curl_easy_setopt(curl, CURLOPT_UPLOAD, 1L);
/* HTTP PUT please */
- curl_easy_setopt(curl, CURLOPT_PUT, 1);
+ curl_easy_setopt(curl, CURLOPT_PUT, 1L);
/* specify target URL, and note that this URL should include a file
name, not only a directory */
- curl_easy_setopt(curl,CURLOPT_URL, url);
+ curl_easy_setopt(curl, CURLOPT_URL, url);
/* now specify which file to upload */
curl_easy_setopt(curl, CURLOPT_READDATA, hd_src);