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 45373909..91fa671f 100644 --- a/plugins/utils.c +++ b/plugins/utils.c | |||
| @@ -147,23 +147,6 @@ print_revision (const char *command_name, const char *revision) | |||
| 147 | command_name, revision, PACKAGE, VERSION); | 147 | command_name, revision, PACKAGE, VERSION); |
| 148 | } | 148 | } |
| 149 | 149 | ||
| 150 | const char * | ||
| 151 | state_text (int result) | ||
| 152 | { | ||
| 153 | switch (result) { | ||
| 154 | case STATE_OK: | ||
| 155 | return "OK"; | ||
| 156 | case STATE_WARNING: | ||
| 157 | return "WARNING"; | ||
| 158 | case STATE_CRITICAL: | ||
| 159 | return "CRITICAL"; | ||
| 160 | case STATE_DEPENDENT: | ||
| 161 | return "DEPENDENT"; | ||
| 162 | default: | ||
| 163 | return "UNKNOWN"; | ||
| 164 | } | ||
| 165 | } | ||
| 166 | |||
| 167 | void | 150 | void |
| 168 | timeout_alarm_handler (int signo) | 151 | timeout_alarm_handler (int signo) |
| 169 | { | 152 | { |
diff --git a/plugins/utils.h b/plugins/utils.h index d6e9c8f7..9912fbf2 100644 --- a/plugins/utils.h +++ b/plugins/utils.h | |||
| @@ -92,8 +92,6 @@ void usage4(const char *) __attribute__((noreturn)); | |||
| 92 | void usage5(void) __attribute__((noreturn)); | 92 | void usage5(void) __attribute__((noreturn)); |
| 93 | void usage_va(const char *fmt, ...) __attribute__((noreturn)); | 93 | void usage_va(const char *fmt, ...) __attribute__((noreturn)); |
| 94 | 94 | ||
| 95 | const char *state_text (int); | ||
| 96 | |||
| 97 | #define max(a,b) (((a)>(b))?(a):(b)) | 95 | #define max(a,b) (((a)>(b))?(a):(b)) |
| 98 | #define min(a,b) (((a)<(b))?(a):(b)) | 96 | #define min(a,b) (((a)<(b))?(a):(b)) |
| 99 | 97 | ||
