aboutsummaryrefslogtreecommitdiff
path: root/docs/examples/synctime.c
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2008-05-22 21:20:07 +0000
committerDan Fandrich <dan@coneharvesters.com>2008-05-22 21:20:07 +0000
commite664cd5826d43930fcc5b5dbaedbec94af33184b (patch)
tree7cca8fe1a4d1649d4d40ed7dcd4fc64486dedf00 /docs/examples/synctime.c
parentb8abeab6d3729ce4c9cc3eccb69e2bd3be2b58d3 (diff)
downloadgnurl-e664cd5826d43930fcc5b5dbaedbec94af33184b.tar.gz
gnurl-e664cd5826d43930fcc5b5dbaedbec94af33184b.tar.bz2
gnurl-e664cd5826d43930fcc5b5dbaedbec94af33184b.zip
Fixed a surprising number of example programs that were passing int arguments
to curl_easy_setopt instead of long.
Diffstat (limited to 'docs/examples/synctime.c')
-rw-r--r--docs/examples/synctime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/examples/synctime.c b/docs/examples/synctime.c
index 2d5a8e51e..dd824670e 100644
--- a/docs/examples/synctime.c
+++ b/docs/examples/synctime.c
@@ -189,7 +189,7 @@ int SyncTime_CURL_Fetch(CURL *curl, char *URL_Str, char *OutFileName,
outfile = NULL;
if (HttpGetBody == HTTP_COMMAND_HEAD)
- curl_easy_setopt(curl, CURLOPT_NOBODY, 1);
+ curl_easy_setopt(curl, CURLOPT_NOBODY, 1L);
else {
outfile = fopen(OutFileName, "wb");
curl_easy_setopt(curl, CURLOPT_WRITEDATA, outfile);