From 68fddcfea216b5c6204ede4cc05810b8c5124df2 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Tue, 1 Jul 2025 15:21:56 +0200 Subject: [PATCH] drop cast for CURLUSESSL_ALL examples, for consistency --- docs/examples/imap-tls.c | 2 +- docs/examples/pop3-tls.c | 2 +- docs/examples/smtp-tls.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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