aboutsummaryrefslogtreecommitdiff
path: root/docs/examples/smtp-multi.c
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2011-11-14 14:03:31 -0800
committerDan Fandrich <dan@coneharvesters.com>2011-11-14 14:07:25 -0800
commit95ddbdb1dbfbb051d67bf0d6643b1a917a4c7d88 (patch)
treec75eed9c6722cca36c35c773ee9305ace91d9222 /docs/examples/smtp-multi.c
parent6c4216b2a7e7f199af58b0aad6dc041d85f804a0 (diff)
curl_easy_setopt arguments should be of type long in the examples
Diffstat (limited to 'docs/examples/smtp-multi.c')
-rw-r--r--docs/examples/smtp-multi.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/examples/smtp-multi.c b/docs/examples/smtp-multi.c
index 15b177e5e..828132073 100644
--- a/docs/examples/smtp-multi.c
+++ b/docs/examples/smtp-multi.c
@@ -123,13 +123,13 @@ int main(void)
curl_easy_setopt(curl, CURLOPT_READFUNCTION, read_callback);
curl_easy_setopt(curl, CURLOPT_MAIL_FROM, MAILFROM);
curl_easy_setopt(curl, CURLOPT_MAIL_RCPT, rcpt_list);
- curl_easy_setopt(curl, CURLOPT_USE_SSL, CURLUSESSL_ALL);
- curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER,0);
- curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0);
+ curl_easy_setopt(curl, CURLOPT_USE_SSL, (long)CURLUSESSL_ALL);
+ curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);
+ curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);
curl_easy_setopt(curl, CURLOPT_READDATA, &pooh);
- curl_easy_setopt(curl, CURLOPT_VERBOSE, 1);
- curl_easy_setopt(curl, CURLOPT_SSLVERSION, 0);
- curl_easy_setopt(curl, CURLOPT_SSL_SESSIONID_CACHE, 0);
+ curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
+ curl_easy_setopt(curl, CURLOPT_SSLVERSION, 0L);
+ curl_easy_setopt(curl, CURLOPT_SSL_SESSIONID_CACHE, 0L);
curl_multi_add_handle(mcurl, curl);
mp_timedout = 0;