Adding d/p/15_check_swap_remove_includes from upstream

This commit is contained in:
Jan Wagner 2023-03-16 22:11:03 +00:00
parent 567890c312
commit 47b7589ce4
2 changed files with 24 additions and 0 deletions

View file

@ -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 <string.h>
-#include <math.h>
-#include <libintl.h>
#ifdef HAVE_DECL_SWAPCTL
# ifdef HAVE_SYS_PARAM_H

View file

@ -6,6 +6,7 @@
12_check_curl_improvements
13_check_icmp_improvements
14_check_curl_fix_SSL_with_multiple_IPs
15_check_swap_remove_includes
# feature patches
30_check_radius_radcli_1.3.1_support
31_checl_mailq_separate_submission_queue