]> git.ipfire.org Git - thirdparty/curl.git/commit
CURLOPT: bump `CURL_REDIR_*` macros to `long`
authorViktor Szakats <commit@vsz.me>
Wed, 30 Jul 2025 21:54:47 +0000 (23:54 +0200)
committerViktor Szakats <commit@vsz.me>
Thu, 31 Jul 2025 07:29:49 +0000 (09:29 +0200)
commite5cf6223d79f8b7849c7b9b46227cca76bb4bdad
treebe0b540cdad4df0bff7579ee02a9b2b6ff87b6f0
parent5f99b45693e9d649397b7b7781f498d9c175bfa2
CURLOPT: bump `CURL_REDIR_*` macros to `long`

This patch bumps the size of these macros from `int` to `long`, while
keeping their actual values the same. It may cause incompatibilities in
user code, requiring the bump of holder variables and/or adding casts:

- CURL_REDIR_GET_ALL
- CURL_REDIR_POST_301
- CURL_REDIR_POST_302
- CURL_REDIR_POST_303
- CURL_REDIR_POST_ALL

Also:
- keep existing cast within the documentation to make sure it applies
  to older curl versions as well.

Closes #18110
include/curl/curl.h
tests/libtest/lib1571.c
tests/libtest/lib650.c