Skip to content

Commit 1e2ee62

Browse files
committed
code: avoid compiler warnings on curl_easy_setopt in http.c
http.c:612:16: warning: call to '_curl_easy_setopt_err_long' declared with attribute warning: curl_easy_setopt expects a long argument [-Wattribute-warning] Signed-off-by: Hans Zandbelt <[email protected]>
1 parent 30fb508 commit 1e2ee62

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

ChangeLog

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
11/07/2025
22
- support individual SameSite cookie settings on the session cookie, state cookie and Discovery CSRF
33
cookie by adding 2 more arguments to OIDCCookieSameSite
4-
4+
- code: avoid compiler warnings on `curl_easy_setopt` in http.c
5+
http.c:612:16: warning: call to '_curl_easy_setopt_err_long' declared with attribute warning: curl_easy_setopt expects a long argument [-Wattribute-warning]
6+
57
11/05/2025
68
- test: add jose.c coverage tests
79

src/http.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -623,8 +623,8 @@ char *oidc_http_form_encoded_data(request_rec *r, const apr_table_t *params) {
623623

624624
#define OIDC_HTTP_CURL_SETOPT_SSL(option, value) \
625625
if (_oidc_strstr(env_var_value, #value) != NULL) { \
626-
oidc_debug(r, "curl_easy_setopt(%s): %s (%d)", #option, #value, value); \
627-
OIDC_HTTP_CURL_SETOPT(option, value); \
626+
oidc_debug(r, "curl_easy_setopt(%s): %s (%ld)", #option, #value, (long)value); \
627+
OIDC_HTTP_CURL_SETOPT(option, (long)value); \
628628
}
629629

630630
static void oidc_http_set_curl_ssl_options(request_rec *r, CURL *curl) {

0 commit comments

Comments
 (0)