[monitoring-plugins] Less includes

RincewindsHat git at monitoring-plugins.org
Fri Dec 3 01:10:11 CET 2021


 Module: monitoring-plugins
 Branch: check_icmp_buffer_offerflow
 Commit: 158c5d35985b91eb36e7230cf60fc6fa64956830
 Author: RincewindsHat <12514511+RincewindsHat at users.noreply.github.com>
   Date: Fri Dec  3 01:07:01 2021 +0100
    URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=158c5d3

Less includes

---

 plugins-root/check_icmp.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/plugins-root/check_icmp.c b/plugins-root/check_icmp.c
index b4300b4..0254fb1 100644
--- a/plugins-root/check_icmp.c
+++ b/plugins-root/check_icmp.c
@@ -50,6 +50,8 @@ const char *email = "devel at monitoring-plugins.org";
 #if HAVE_SYS_SOCKIO_H
 #include <sys/sockio.h>
 #endif
+
+/*
 #include <sys/ioctl.h>
 #include <sys/time.h>
 #include <sys/types.h>
@@ -60,9 +62,12 @@ const char *email = "devel at monitoring-plugins.org";
 #include <stddef.h>
 #include <errno.h>
 #include <string.h>
-#include <ctype.h>
 #include <netdb.h>
 #include <sys/socket.h>
+#include <signal.h>
+#include <float.h>
+*/
+#include <ctype.h>
 #include <net/if.h>
 #include <netinet/in_systm.h>
 #include <netinet/in.h>
@@ -71,8 +76,6 @@ const char *email = "devel at monitoring-plugins.org";
 #include <netinet/ip_icmp.h>
 #include <netinet/icmp6.h>
 #include <arpa/inet.h>
-#include <signal.h>
-#include <float.h>
 
 
 /** sometimes undefined system macros (quite a few, actually) **/



More information about the Commits mailing list