diff --git a/plugins/utils.h.in b/plugins/utils.h.in
index a21d63d6c3bcc342dea89b98a7173e088c3267ae..46b152a3b743c38bc17229130c26331f3f1432e6 100644 (file)
--- a/plugins/utils.h.in
+++ b/plugins/utils.h.in
-/* header file for nagios plugins uitls.c */
+/* header file for nagios plugins utils.c */
/* this file should be included in all plugins */
/* this file should be included in all plugins */
char *strpcpy (char *dest, const char *src, const char *str);
char *strpcat (char *dest, const char *src, const char *str);
char *strpcpy (char *dest, const char *src, const char *str);
char *strpcat (char *dest, const char *src, const char *str);
+/* Handle comparisions for STATE_* */
+int max_state(int, int);
+
#define max(a,b) ((a)>(b))?(a):(b)
#define usage(msg) {\
#define max(a,b) ((a)>(b))?(a):(b)
#define usage(msg) {\
(a)==0?"OK":\
(a)==1?"WARNING":\
(a)==2?"CRITICAL":\
(a)==0?"OK":\
(a)==1?"WARNING":\
(a)==2?"CRITICAL":\
-(a)==-2?"DEPENDENT":\
+(a)==3?"UNKNOWN":\
+(a)==4?"DEPENDENT":\
"UNKNOWN"
/* The idea here is that, although not every plugin will use all of these,
"UNKNOWN"
/* The idea here is that, although not every plugin will use all of these,