aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Matthias Eble <psychotrahe@users.sourceforge.net> 2007-06-13 09:43:28 +0000
committerGravatar Matthias Eble <psychotrahe@users.sourceforge.net> 2007-06-13 09:43:28 +0000
commit7c8db659a49d575b6d5b0304f5399c9b2931d83b (patch)
tree19d35f36864045e0b062272f45dceef19f2db4d9
parent884bd1c8225c04cf4187f52cd798572d8d26a36e (diff)
downloadmonitoring-plugins-7c8db659a49d575b6d5b0304f5399c9b2931d83b.tar.gz
Fixed some syntax errors to make check_ide_smart build
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1739 f882894a-f735-0410-b71e-b25c423dba1c
-rw-r--r--plugins/check_ide_smart.c21
1 files changed, 2 insertions, 19 deletions
diff --git a/plugins/check_ide_smart.c b/plugins/check_ide_smart.c
index e30d89cc..5dcf7a3b 100644
--- a/plugins/check_ide_smart.c
+++ b/plugins/check_ide_smart.c
@@ -437,23 +437,6 @@ print_values (values_t * p, thresholds_t * t)
}
-
-void
-print_thresholds (thresholds_t * p)
-{
- threshold_t * threshold = p->thresholds;
- int i;
- printf ("\n");
- printf ("SmartRevision=%d\n", p->revision);
- for (i = 0; i < NR_ATTRIBUTES; i++) {
- if (threshold->id) {
- printf ("Id=%3d, Threshold=%3d\n", threshold->id,
- threshold->threshold); }
- ++threshold;
- }
- printf ("CheckSum=%d\n", p->checksum);
-}
-
int
smart_cmd_simple (int fd, enum SmartCommand command, __u8 val0, char show_error)
{
@@ -541,7 +524,7 @@ print_help (void)
void
print_usage (void)
{
- printf (_("Usage:");
+ printf (_("Usage:"));
printf ("%s [-d <device>] [-i <immediate>] [-q quiet] [-1 <auto-on>]",progname);
- pritnf (" [-O <auto-off>] [-n <nagios>]\n");
+ printf (" [-O <auto-off>] [-n <nagios>]\n");
}