[monitoring-plugins] Make includes more specific and complement them

RincewindsHat git at monitoring-plugins.org
Sat Mar 26 15:40:10 CET 2022


 Module: monitoring-plugins
 Branch: check_load-compiler_warnings
 Commit: a3ea7f03ad54017fe434513c7973d4148f652d5d
 Author: RincewindsHat <12514511+RincewindsHat at users.noreply.github.com>
   Date: Sat Mar 26 15:30:34 2022 +0100
    URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=a3ea7f0

Make includes more specific and complement them

---

 plugins/check_load.c | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/plugins/check_load.c b/plugins/check_load.c
index dafe8cc..cdb368a 100644
--- a/plugins/check_load.c
+++ b/plugins/check_load.c
@@ -32,10 +32,12 @@ const char *progname = "check_load";
 const char *copyright = "1999-2007";
 const char *email = "devel at monitoring-plugins.org";
 
-#include "common.h"
-#include "runcmd.h"
-#include "utils.h"
-#include "popen.h"
+#include "./common.h"
+#include "./runcmd.h"
+#include "./utils.h"
+#include "./popen.h"
+
+#include <string.h>
 
 #ifdef HAVE_SYS_LOADAVG_H
 #include <sys/loadavg.h>



More information about the Commits mailing list