diff options
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-08-28 03:20:25 (GMT) |
---|---|---|
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-08-28 03:20:25 (GMT) |
commit | a2c0d2b629315b32950ee70f266b8ae2cecf6028 (patch) | |
tree | 301eb0fe8c7ab1d1225b2ac65513427631d725a6 /plugins/utils.h | |
parent | 0a7123641f5e19d5101132d8e576ce0ea0e420b1 (diff) | |
download | monitoring-plugins-a2c0d2b629315b32950ee70f266b8ae2cecf6028.tar.gz |
add min() macro to complement max()
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@699 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/utils.h')
-rw-r--r-- | plugins/utils.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/utils.h b/plugins/utils.h index 282f299..64d4aca 100644 --- a/plugins/utils.h +++ b/plugins/utils.h | |||
@@ -78,6 +78,7 @@ void usage3(const char *msg, int arg) __attribute__((noreturn)); | |||
78 | const char *state_text (int result); | 78 | const char *state_text (int result); |
79 | 79 | ||
80 | #define max(a,b) (((a)>(b))?(a):(b)) | 80 | #define max(a,b) (((a)>(b))?(a):(b)) |
81 | #define min(a,b) (((a)<(b))?(a):(b)) | ||
81 | 82 | ||
82 | char *perfdata (const char *label, | 83 | char *perfdata (const char *label, |
83 | long int val, | 84 | long int val, |