[Nagiosplug-checkins] nagiosplug/plugins check_ide_smart.c,1.9,1.10

Stanley Hopcroft stanleyhopcroft at users.sourceforge.net
Tue Feb 1 22:43:49 CET 2005


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

Modified Files:
	check_ide_smart.c 
Log Message:
try again to stop looping

Index: check_ide_smart.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_ide_smart.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- check_ide_smart.c	2 Feb 2005 05:44:26 -0000	1.9
+++ check_ide_smart.c	2 Feb 2005 06:42:18 -0000	1.10
@@ -182,13 +182,10 @@
 		
 		o = getopt_long (argc, argv, "+d:iq10nhV", longopts, &longindex);
 
-		switch (o) {
-		case -1: 
-								/* 
-								 * bail out of the switch but not the loop, so
-								 * that device can be extracted from argv.
-								 */
+		if (o == -1 || o == EOF || o == 1)
 			break;
+
+		switch (o) {
 		case 'd':
 			device = optarg;
 			break;





More information about the Commits mailing list