summaryrefslogtreecommitdiffstats
path: root/plugins/check_curl.c
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2023-02-12 15:09:02 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2023-02-12 15:09:02 +0100
commit8e1bbf5e6ed4069d4256bf549a408bb8759861fa (patch)
tree316be167cf58fdc26c080911d51d1a8747c05aff /plugins/check_curl.c
parent6563267c3ad84bcc4779d282b5ae20520a4a2a6b (diff)
downloadmonitoring-plugins-8e1bbf5e6ed4069d4256bf549a408bb8759861fa.tar.gz
changed #else/#if to #elif in libcurl library checks
Diffstat (limited to 'plugins/check_curl.c')
-rw-r--r--plugins/check_curl.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/check_curl.c b/plugins/check_curl.c
index 1127d601..284cf4ea 100644
--- a/plugins/check_curl.c
+++ b/plugins/check_curl.c
@@ -722,11 +722,9 @@ check_http (void)
722 /* for now allow only http and https (we are a http(s) check plugin in the end) */ 722 /* for now allow only http and https (we are a http(s) check plugin in the end) */
723#if LIBCURL_VERSION_NUM >= MAKE_LIBCURL_VERSION(7, 85, 0) 723#if LIBCURL_VERSION_NUM >= MAKE_LIBCURL_VERSION(7, 85, 0)
724 handle_curl_option_return_code (curl_easy_setopt (curl, CURLOPT_REDIR_PROTOCOLS_STR, "http,https"), "CURLOPT_REDIR_PROTOCOLS_STR"); 724 handle_curl_option_return_code (curl_easy_setopt (curl, CURLOPT_REDIR_PROTOCOLS_STR, "http,https"), "CURLOPT_REDIR_PROTOCOLS_STR");
725#else 725#elif LIBCURL_VERSION_NUM >= MAKE_LIBCURL_VERSION(7, 19, 4)
726#if LIBCURL_VERSION_NUM >= MAKE_LIBCURL_VERSION(7, 19, 4)
727 handle_curl_option_return_code (curl_easy_setopt (curl, CURLOPT_REDIR_PROTOCOLS, CURLPROTO_HTTP | CURLPROTO_HTTPS), "CURLOPT_REDIRECT_PROTOCOLS"); 726 handle_curl_option_return_code (curl_easy_setopt (curl, CURLOPT_REDIR_PROTOCOLS, CURLPROTO_HTTP | CURLPROTO_HTTPS), "CURLOPT_REDIRECT_PROTOCOLS");
728#endif /* LIBCURL_VERSION_NUM >= MAKE_LIBCURL_VERSION(7, 19, 4) */ 727#endif
729#endif /* LIBCURL_VERSION_NUM >= MAKE_LIBCURL_VERSION(7, 85, 4) */
730 728
731 /* TODO: handle the following aspects of redirection, make them 729 /* TODO: handle the following aspects of redirection, make them
732 * command line options too later: 730 * command line options too later: