diff options
| author | Stuart Henderson <stu@spacehopper.org> | 2025-12-23 15:54:27 +0000 |
|---|---|---|
| committer | Stuart Henderson <stu@spacehopper.org> | 2025-12-23 15:54:27 +0000 |
| commit | d36bf51baf2338cc7f49601f679548960a8299c0 (patch) | |
| tree | 0d667be48eabe72a4c2f5926f7f6a1ff588dc330 /plugins/check_curl.d/config.h | |
| parent | 828a9720b10814c5836d03aa35af05d196c4104b (diff) | |
| download | monitoring-plugins-d36bf51b.tar.gz | |
fix types for most curl_easy_setopt parameters
according to https://curl.se/libcurl/c/curl_easy_setopt.html, parameters
are either a long, a function pointer, an object pointer or a curl_off_t,
depending on what the option expects; curl 8.16 checks and warns about
these.
Diffstat (limited to 'plugins/check_curl.d/config.h')
| -rw-r--r-- | plugins/check_curl.d/config.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/check_curl.d/config.h b/plugins/check_curl.d/config.h index f51b2ee9..61067d46 100644 --- a/plugins/check_curl.d/config.h +++ b/plugins/check_curl.d/config.h | |||
| @@ -57,10 +57,10 @@ typedef struct { | |||
| 57 | bool haproxy_protocol; | 57 | bool haproxy_protocol; |
| 58 | long socket_timeout; | 58 | long socket_timeout; |
| 59 | sa_family_t sin_family; | 59 | sa_family_t sin_family; |
| 60 | int curl_http_version; | 60 | long curl_http_version; |
| 61 | char **http_opt_headers; | 61 | char **http_opt_headers; |
| 62 | size_t http_opt_headers_count; | 62 | size_t http_opt_headers_count; |
| 63 | int ssl_version; | 63 | long ssl_version; |
| 64 | char *client_cert; | 64 | char *client_cert; |
| 65 | char *client_privkey; | 65 | char *client_privkey; |
| 66 | char *ca_cert; | 66 | char *ca_cert; |
| @@ -76,7 +76,7 @@ typedef struct { | |||
| 76 | check_curl_working_state initial_config; | 76 | check_curl_working_state initial_config; |
| 77 | 77 | ||
| 78 | check_curl_static_curl_config curl_config; | 78 | check_curl_static_curl_config curl_config; |
| 79 | int max_depth; | 79 | long max_depth; |
| 80 | int followmethod; | 80 | int followmethod; |
| 81 | int followsticky; | 81 | int followsticky; |
| 82 | 82 | ||
