diff --git a/docs/examples/imap-tls.c b/docs/examples/imap-tls.c index 838923b334..8fbc96bb55 100644 --- a/docs/examples/imap-tls.c +++ b/docs/examples/imap-tls.c @@ -57,7 +57,7 @@ int main(void) * of using CURLUSESSL_TRY here, because if TLS upgrade fails, the * transfer continues anyway - see the security discussion in the libcurl * tutorial for more details. */ - curl_easy_setopt(curl, CURLOPT_USE_SSL, (long)CURLUSESSL_ALL); + curl_easy_setopt(curl, CURLOPT_USE_SSL, CURLUSESSL_ALL); /* If your server does not have a valid certificate, then you can disable * part of the Transport Layer Security protection by setting the diff --git a/docs/examples/pop3-tls.c b/docs/examples/pop3-tls.c index 7c2d824d04..b2f504c475 100644 --- a/docs/examples/pop3-tls.c +++ b/docs/examples/pop3-tls.c @@ -56,7 +56,7 @@ int main(void) * using CURLUSESSL_TRY here, because if TLS upgrade fails, the transfer * continues anyway - see the security discussion in the libcurl tutorial * for more details. */ - curl_easy_setopt(curl, CURLOPT_USE_SSL, (long)CURLUSESSL_ALL); + curl_easy_setopt(curl, CURLOPT_USE_SSL, CURLUSESSL_ALL); /* If your server does not have a valid certificate, then you can disable * part of the Transport Layer Security protection by setting the diff --git a/docs/examples/smtp-tls.c b/docs/examples/smtp-tls.c index fd4e385023..34a00bd548 100644 --- a/docs/examples/smtp-tls.c +++ b/docs/examples/smtp-tls.c @@ -110,7 +110,7 @@ int main(void) * of using CURLUSESSL_TRY here, because if TLS upgrade fails, the * transfer continues anyway - see the security discussion in the libcurl * tutorial for more details. */ - curl_easy_setopt(curl, CURLOPT_USE_SSL, (long)CURLUSESSL_ALL); + curl_easy_setopt(curl, CURLOPT_USE_SSL, CURLUSESSL_ALL); /* If your server does not have a valid certificate, then you can disable * part of the Transport Layer Security protection by setting the