]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
CURLOPT: replace `(long)` cast with `L` suffix for `CURLHSTS_*` macros
authorViktor Szakats <commit@vsz.me>
Fri, 1 Aug 2025 10:54:18 +0000 (12:54 +0200)
committerViktor Szakats <commit@vsz.me>
Fri, 1 Aug 2025 21:58:17 +0000 (23:58 +0200)
In curl/curl.h and the man page. To match the rest of CURLOPT macros.

Cherry-picked from #18130

docs/libcurl/opts/CURLOPT_HSTS_CTRL.md
include/curl/curl.h

index 3ed7f3c5970184458d7b95c65aa2efdecc7d818a..589f7aca13fcb8182a5f7ef8c7df8604f9b52720 100644 (file)
@@ -23,8 +23,8 @@ CURLOPT_HSTS_CTRL - control HSTS behavior
 ~~~c
 #include <curl/curl.h>
 
-#define CURLHSTS_ENABLE       (long)(1<<0)
-#define CURLHSTS_READONLYFILE (long)(1<<1)
+#define CURLHSTS_ENABLE       (1L<<0)
+#define CURLHSTS_READONLYFILE (1L<<1)
 
 CURLcode curl_easy_setopt(CURL *handle, CURLOPT_HSTS_CTRL, long bitmask);
 ~~~
index cca5a4433f82a882baa3343092331e93a457c87b..6f4aa90f1349ba8b417866d2c92925d0da2cf609 100644 (file)
@@ -1067,8 +1067,8 @@ typedef CURLSTScode (*curl_hstswrite_callback)(CURL *easy,
                                                void *userp);
 
 /* CURLHSTS_* are bits for the CURLOPT_HSTS option */
-#define CURLHSTS_ENABLE       (long)(1<<0)
-#define CURLHSTS_READONLYFILE (long)(1<<1)
+#define CURLHSTS_ENABLE       (1L<<0)
+#define CURLHSTS_READONLYFILE (1L<<1)
 
 /* The CURLPROTO_ defines below are for the **deprecated** CURLOPT_*PROTOCOLS
    options. Do not use. */