Explorar o código

restore max() macro

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@243 f882894a-f735-0410-b71e-b25c423dba1c
Karl DeBisschop %!s(int64=23) %!d(string=hai) anos
pai
achega
518c841e42
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      plugins/utils.c

+ 2 - 0
plugins/utils.c

@@ -65,6 +65,8 @@ char *strpcat (char *dest, const char *src, const char *str);
  * Note that numerically the above does not hold
  * Note that numerically the above does not hold
  ****************************************************************************/
  ****************************************************************************/
 
 
+#define max(a,b) (((a)>(b))?(a):(b))
+
 int
 int
 max_state (int a, int b)
 max_state (int a, int b)
 {
 {