diff options
author | Lorenz <12514511+RincewindsHat@users.noreply.github.com> | 2023-03-27 12:32:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-27 12:32:22 +0200 |
commit | 482aa6c7fe86d7a899e4888d14149f1ccd5401fd (patch) | |
tree | 6e20e91e0664ae75298b19e6d7518096a30bf0be | |
parent | 3e3e225b3f962993a6139bf5a2c22009b9e9cd32 (diff) | |
parent | cf90f0de7b3c347a6860b50de6a610bd7132668c (diff) | |
download | monitoring-plugins-482aa6c.tar.gz |
Merge pull request #1855 from monitoring-plugins/curlfreebsdfixes
check_curl: including netinet/in.h (for FreeBSD), fixed an ambigous compare warning
-rw-r--r-- | plugins/check_curl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/check_curl.c b/plugins/check_curl.c index e5be1ad5..c51914a9 100644 --- a/plugins/check_curl.c +++ b/plugins/check_curl.c | |||
@@ -55,6 +55,7 @@ const char *email = "devel@monitoring-plugins.org"; | |||
55 | #include "uriparser/Uri.h" | 55 | #include "uriparser/Uri.h" |
56 | 56 | ||
57 | #include <arpa/inet.h> | 57 | #include <arpa/inet.h> |
58 | #include <netinet/in.h> | ||
58 | 59 | ||
59 | #if defined(HAVE_SSL) && defined(USE_OPENSSL) | 60 | #if defined(HAVE_SSL) && defined(USE_OPENSSL) |
60 | #include <openssl/opensslv.h> | 61 | #include <openssl/opensslv.h> |
@@ -541,7 +542,7 @@ check_http (void) | |||
541 | /* compose URL: use the address we want to connect to, set Host: header later */ | 542 | /* compose URL: use the address we want to connect to, set Host: header later */ |
542 | snprintf (url, DEFAULT_BUFFER_SIZE, "%s://%s:%d%s", | 543 | snprintf (url, DEFAULT_BUFFER_SIZE, "%s://%s:%d%s", |
543 | use_ssl ? "https" : "http", | 544 | use_ssl ? "https" : "http", |
544 | use_ssl & host_name != NULL ? host_name : server_address, | 545 | ( use_ssl & ( host_name != NULL ) ) ? host_name : server_address, |
545 | server_port, | 546 | server_port, |
546 | server_url | 547 | server_url |
547 | ); | 548 | ); |