summaryrefslogtreecommitdiffstats
path: root/plugins/check_ide_smart.c
diff options
context:
space:
mode:
authorStanley Hopcroft <stanleyhopcroft@users.sourceforge.net>2005-02-02 06:42:18 (GMT)
committerStanley Hopcroft <stanleyhopcroft@users.sourceforge.net>2005-02-02 06:42:18 (GMT)
commit93c1c1d84517f1d11a91636c4e045c9f2e8e279a (patch)
tree008caf75b7937592a3c12642f561a4f71808c080 /plugins/check_ide_smart.c
parentb0eda8844333f509d5543fdec70415b0e26a1c86 (diff)
downloadmonitoring-plugins-93c1c1d84517f1d11a91636c4e045c9f2e8e279a.tar.gz
try again to stop looping
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1127 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_ide_smart.c')
-rw-r--r--plugins/check_ide_smart.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/plugins/check_ide_smart.c b/plugins/check_ide_smart.c
index bf12355..4172483 100644
--- a/plugins/check_ide_smart.c
+++ b/plugins/check_ide_smart.c
@@ -182,13 +182,10 @@ main (int argc, char *argv[])
182 182
183 o = getopt_long (argc, argv, "+d:iq10nhV", longopts, &longindex); 183 o = getopt_long (argc, argv, "+d:iq10nhV", longopts, &longindex);
184 184
185 switch (o) { 185 if (o == -1 || o == EOF || o == 1)
186 case -1:
187 /*
188 * bail out of the switch but not the loop, so
189 * that device can be extracted from argv.
190 */
191 break; 186 break;
187
188 switch (o) {
192 case 'd': 189 case 'd':
193 device = optarg; 190 device = optarg;
194 break; 191 break;