diff options
author | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2022-03-26 13:47:20 +0100 |
---|---|---|
committer | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2022-03-26 13:47:20 +0100 |
commit | b0115b2b92fb4a2ba2d844ee867bacf77e518d66 (patch) | |
tree | bd69a4caa74098b28c7f9a2a99442c86fafa2156 | |
parent | 066b6e68242b5e7a6f1eb665df9b227d896aec66 (diff) | |
download | monitoring-plugins-b0115b2b92fb4a2ba2d844ee867bacf77e518d66.tar.gz |
Remove hacky DBL_MAX and use float.h instead
-rw-r--r-- | plugins-root/check_icmp.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/plugins-root/check_icmp.c b/plugins-root/check_icmp.c index 61198237..1b6a5e17 100644 --- a/plugins-root/check_icmp.c +++ b/plugins-root/check_icmp.c | |||
@@ -63,6 +63,7 @@ const char *email = "devel@monitoring-plugins.org"; | |||
63 | #include <netinet/ip_icmp.h> | 63 | #include <netinet/ip_icmp.h> |
64 | #include <netinet/icmp6.h> | 64 | #include <netinet/icmp6.h> |
65 | #include <arpa/inet.h> | 65 | #include <arpa/inet.h> |
66 | #include <float.h> | ||
66 | 67 | ||
67 | 68 | ||
68 | /** sometimes undefined system macros (quite a few, actually) **/ | 69 | /** sometimes undefined system macros (quite a few, actually) **/ |
@@ -95,10 +96,6 @@ const char *email = "devel@monitoring-plugins.org"; | |||
95 | # define ICMP_UNREACH_PRECEDENCE_CUTOFF 15 | 96 | # define ICMP_UNREACH_PRECEDENCE_CUTOFF 15 |
96 | #endif | 97 | #endif |
97 | 98 | ||
98 | #ifndef DBL_MAX | ||
99 | # define DBL_MAX 9.9999999999e999 | ||
100 | #endif | ||
101 | |||
102 | typedef unsigned short range_t; /* type for get_range() -- unimplemented */ | 99 | typedef unsigned short range_t; /* type for get_range() -- unimplemented */ |
103 | 100 | ||
104 | typedef struct rta_host { | 101 | typedef struct rta_host { |