[Nagiosplug-checkins] nagiosplug/plugins check_ide_smart.c, 1.14, 1.15

Matthias Eble psychotrahe at users.sourceforge.net
Wed Jun 13 11:43:30 CEST 2007


Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv12128

Modified Files:
	check_ide_smart.c 
Log Message:
Fixed some syntax errors to make check_ide_smart build


Index: check_ide_smart.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_ide_smart.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- check_ide_smart.c	6 Feb 2007 21:03:21 -0000	1.14
+++ check_ide_smart.c	13 Jun 2007 09:43:28 -0000	1.15
@@ -437,23 +437,6 @@
 }
 
 
-
-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 @@
 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");
 }





More information about the Commits mailing list