summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2023-03-16 16:21:46 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2023-03-16 16:21:46 +0100
commitcf90f0de7b3c347a6860b50de6a610bd7132668c (patch)
tree621744b74e419f4715779df7571bf8863321ec8d /plugins
parentc1070fa1ef06b965c116583e9557f06949bb27c0 (diff)
downloadmonitoring-plugins-cf90f0d.tar.gz
check_curk: including netinet/in.h (for FreeBSD), fixed an ambigous compare warning
Diffstat (limited to 'plugins')
-rw-r--r--plugins/check_curl.c3
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 );