From eab1e1d487c6e8c4968985aa8cdee0ec685e6d6f Mon Sep 17 00:00:00 2001 From: Jan Wagner Date: Thu, 16 Mar 2023 22:11:03 +0000 Subject: [PATCH] Adding d/p/15_check_swap_remove_includes from upstream --- debian/patches/15_check_swap_remove_includes | 23 ++++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 24 insertions(+) create mode 100644 debian/patches/15_check_swap_remove_includes diff --git a/debian/patches/15_check_swap_remove_includes b/debian/patches/15_check_swap_remove_includes new file mode 100644 index 0000000..fb65026 --- /dev/null +++ b/debian/patches/15_check_swap_remove_includes @@ -0,0 +1,23 @@ +From 8a8ee58e8925019b7532e7d14ebe488bb21fb3e6 Mon Sep 17 00:00:00 2001 +From: RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> +Date: Thu, 16 Mar 2023 15:26:52 +0100 +Subject: [PATCH] check_swap: Remove unnecessary and problematic includes + +--- + plugins/check_swap.c | 3 --- + 1 file changed, 3 deletions(-) + +diff --git a/plugins/check_swap.c b/plugins/check_swap.c +index a607da1e9..25d5f21d0 100644 +--- a/plugins/check_swap.c ++++ b/plugins/check_swap.c +@@ -34,9 +34,6 @@ const char *email = "devel@monitoring-plugins.org"; + #include "common.h" + #include "popen.h" + #include "utils.h" +-#include +-#include +-#include + + #ifdef HAVE_DECL_SWAPCTL + # ifdef HAVE_SYS_PARAM_H diff --git a/debian/patches/series b/debian/patches/series index 7a2debc..3e14114 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -6,3 +6,4 @@ 12_check_curl_improvements 13_check_icmp_improvements 14_check_curl_fix_SSL_with_multiple_IPs +15_check_swap_remove_includes