diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/utils.c | 17 | ||||
-rw-r--r-- | plugins/utils.h | 2 |
2 files changed, 0 insertions, 19 deletions
diff --git a/plugins/utils.c b/plugins/utils.c index 0e79fbdb..5967647a 100644 --- a/plugins/utils.c +++ b/plugins/utils.c | |||
@@ -121,23 +121,6 @@ print_revision (const char *command_name, const char *revision_string) | |||
121 | command_name, clean_revstring(revision_string), PACKAGE, VERSION); | 121 | command_name, clean_revstring(revision_string), PACKAGE, VERSION); |
122 | } | 122 | } |
123 | 123 | ||
124 | const char * | ||
125 | state_text (int result) | ||
126 | { | ||
127 | switch (result) { | ||
128 | case STATE_OK: | ||
129 | return "OK"; | ||
130 | case STATE_WARNING: | ||
131 | return "WARNING"; | ||
132 | case STATE_CRITICAL: | ||
133 | return "CRITICAL"; | ||
134 | case STATE_DEPENDENT: | ||
135 | return "DEPENDENT"; | ||
136 | default: | ||
137 | return "UNKNOWN"; | ||
138 | } | ||
139 | } | ||
140 | |||
141 | void | 124 | void |
142 | timeout_alarm_handler (int signo) | 125 | timeout_alarm_handler (int signo) |
143 | { | 126 | { |
diff --git a/plugins/utils.h b/plugins/utils.h index f15a7b16..98d19d20 100644 --- a/plugins/utils.h +++ b/plugins/utils.h | |||
@@ -84,8 +84,6 @@ void usage4(const char *) __attribute__((noreturn)); | |||
84 | void usage5(void) __attribute__((noreturn)); | 84 | void usage5(void) __attribute__((noreturn)); |
85 | void usage_va(const char *fmt, ...) __attribute__((noreturn)); | 85 | void usage_va(const char *fmt, ...) __attribute__((noreturn)); |
86 | 86 | ||
87 | const char *state_text (int); | ||
88 | |||
89 | #define max(a,b) (((a)>(b))?(a):(b)) | 87 | #define max(a,b) (((a)>(b))?(a):(b)) |
90 | #define min(a,b) (((a)<(b))?(a):(b)) | 88 | #define min(a,b) (((a)<(b))?(a):(b)) |
91 | 89 | ||