[monitoring-plugins] Remove hacky DBL_MAX and use float.h instead
RincewindsHat
git at monitoring-plugins.org
Sat Mar 26 13:50:10 CET 2022
Module: monitoring-plugins
Branch: check_icmp-compiler_warnings
Commit: b0115b2b92fb4a2ba2d844ee867bacf77e518d66
Author: RincewindsHat <12514511+RincewindsHat at users.noreply.github.com>
Date: Sat Mar 26 13:47:20 2022 +0100
URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=b0115b2
Remove hacky DBL_MAX and use float.h instead
---
plugins-root/check_icmp.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/plugins-root/check_icmp.c b/plugins-root/check_icmp.c
index 6119823..1b6a5e1 100644
--- a/plugins-root/check_icmp.c
+++ b/plugins-root/check_icmp.c
@@ -63,6 +63,7 @@ const char *email = "devel at monitoring-plugins.org";
#include <netinet/ip_icmp.h>
#include <netinet/icmp6.h>
#include <arpa/inet.h>
+#include <float.h>
/** sometimes undefined system macros (quite a few, actually) **/
@@ -95,10 +96,6 @@ const char *email = "devel at monitoring-plugins.org";
# define ICMP_UNREACH_PRECEDENCE_CUTOFF 15
#endif
-#ifndef DBL_MAX
-# define DBL_MAX 9.9999999999e999
-#endif
-
typedef unsigned short range_t; /* type for get_range() -- unimplemented */
typedef struct rta_host {
More information about the Commits
mailing list