aboutsummaryrefslogtreecommitdiff
path: root/plugins/utils.h
diff options
context:
space:
mode:
authorGravatar Karl DeBisschop <kdebisschop@users.sourceforge.net> 2003-08-28 03:20:25 +0000
committerGravatar Karl DeBisschop <kdebisschop@users.sourceforge.net> 2003-08-28 03:20:25 +0000
commita2c0d2b629315b32950ee70f266b8ae2cecf6028 (patch)
tree301eb0fe8c7ab1d1225b2ac65513427631d725a6 /plugins/utils.h
parent0a7123641f5e19d5101132d8e576ce0ea0e420b1 (diff)
downloadmonitoring-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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/utils.h b/plugins/utils.h
index 282f299e..64d4acad 100644
--- a/plugins/utils.h
+++ b/plugins/utils.h
@@ -78,6 +78,7 @@ void usage3(const char *msg, int arg) __attribute__((noreturn));
const char *state_text (int result);
#define max(a,b) (((a)>(b))?(a):(b))
+#define min(a,b) (((a)<(b))?(a):(b))
char *perfdata (const char *label,
long int val,