summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRincewindsHat <12514511+RincewindsHat@users.noreply.github.com>2022-03-26 12:47:20 (GMT)
committerRincewindsHat <12514511+RincewindsHat@users.noreply.github.com>2022-03-26 12:47:20 (GMT)
commitb0115b2b92fb4a2ba2d844ee867bacf77e518d66 (patch)
treebd69a4caa74098b28c7f9a2a99442c86fafa2156
parent066b6e68242b5e7a6f1eb665df9b227d896aec66 (diff)
downloadmonitoring-plugins-b0115b2.tar.gz
Remove hacky DBL_MAX and use float.h instead
-rw-r--r--plugins-root/check_icmp.c5
1 files changed, 1 insertions, 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@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
102typedef unsigned short range_t; /* type for get_range() -- unimplemented */ 99typedef unsigned short range_t; /* type for get_range() -- unimplemented */
103 100
104typedef struct rta_host { 101typedef struct rta_host {