From: Karl DeBisschop Date: Thu, 28 Aug 2003 03:20:25 +0000 (+0000) Subject: add min() macro to complement max() X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a2c0d2b629315b32950ee70f266b8ae2cecf6028;p=nagiosplug.git add min() macro to complement max() git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@699 f882894a-f735-0410-b71e-b25c423dba1c --- 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)); 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,