From 983507a1448e72619ee6385dd51a956f58087afb Mon Sep 17 00:00:00 2001 From: Jan Wagner Date: Mon, 27 Mar 2023 14:02:54 +0000 Subject: [PATCH] Adding d/p/34_check_curl_fix_compare_warning from upstream --- .../patches/34_check_curl_fix_compare_warning | 31 +++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 32 insertions(+) create mode 100644 debian/patches/34_check_curl_fix_compare_warning diff --git a/debian/patches/34_check_curl_fix_compare_warning b/debian/patches/34_check_curl_fix_compare_warning new file mode 100644 index 0000000..c6775ee --- /dev/null +++ b/debian/patches/34_check_curl_fix_compare_warning @@ -0,0 +1,31 @@ +From cf90f0de7b3c347a6860b50de6a610bd7132668c Mon Sep 17 00:00:00 2001 +From: Andreas Baumann +Date: Thu, 16 Mar 2023 16:21:46 +0100 +Subject: [PATCH] check_curk: including netinet/in.h (for FreeBSD), fixed an + ambigous compare warning + +--- + plugins/check_curl.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/plugins/check_curl.c b/plugins/check_curl.c +index e5be1ad56..c51914a9a 100644 +--- a/plugins/check_curl.c ++++ b/plugins/check_curl.c +@@ -55,6 +55,7 @@ const char *email = "devel@monitoring-plugins.org"; + #include "uriparser/Uri.h" + + #include ++#include + + #if defined(HAVE_SSL) && defined(USE_OPENSSL) + #include +@@ -541,7 +542,7 @@ check_http (void) + /* compose URL: use the address we want to connect to, set Host: header later */ + snprintf (url, DEFAULT_BUFFER_SIZE, "%s://%s:%d%s", + use_ssl ? "https" : "http", +- use_ssl & host_name != NULL ? host_name : server_address, ++ ( use_ssl & ( host_name != NULL ) ) ? host_name : server_address, + server_port, + server_url + ); diff --git a/debian/patches/series b/debian/patches/series index 04d0430..da99a83 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -12,3 +12,4 @@ 31_checl_mailq_separate_submission_queue 32_check_disk_add_ignore_missing 33_check_procs_exclude-process +34_check_curl_fix_compare_warning