aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Sven Nierlein <sven@nierlein.org> 2016-11-08 10:26:52 +0100
committerGravatar GitHub <noreply@github.com> 2016-11-08 10:26:52 +0100
commitefaeecc8912db92256c80ee6e714f9752a45de00 (patch)
tree293a0d5f6ac74a41f34d77851529e4bf908d8098
parent85cfc7b1aa0bc4da1248e8abf4541bf35b36b937 (diff)
parent2742e657988360a573e517bcc5345e9efae3691d (diff)
downloadmonitoring-plugins-efaeecc8912db92256c80ee6e714f9752a45de00.tar.gz
Merge pull request #1441 from waja/check_ide_smart_remove_unused_function
check_ide_smart: remove unused function
-rw-r--r--plugins/check_ide_smart.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/plugins/check_ide_smart.c b/plugins/check_ide_smart.c
index 8d540ca1..46621318 100644
--- a/plugins/check_ide_smart.c
+++ b/plugins/check_ide_smart.c
@@ -166,7 +166,6 @@ enum SmartCommand
char *get_offline_text (int);
int smart_read_values (int, values_t *);
-int values_not_passed (values_t *, thresholds_t *);
int nagios (values_t *, thresholds_t *);
void print_value (value_t *, threshold_t *);
void print_values (values_t *, thresholds_t *);
@@ -340,31 +339,6 @@ smart_read_values (int fd, values_t * values)
int
-values_not_passed (values_t * p, thresholds_t * t)
-{
- value_t * value = p->values;
- threshold_t * threshold = t->thresholds;
- int failed = 0;
- int passed = 0;
- int i;
- for (i = 0; i < NR_ATTRIBUTES; i++) {
- if (value->id && threshold->id && value->id == threshold->id) {
- if (value->value < threshold->threshold) {
- ++failed;
- }
- else {
- ++passed;
- }
- }
- ++value;
- ++threshold;
- }
- return (passed ? -failed : 2);
-}
-
-
-
-int
nagios (values_t * p, thresholds_t * t)
{
value_t * value = p->values;