diff options
author | Stanley Hopcroft <stanleyhopcroft@users.sourceforge.net> | 2005-02-02 06:42:18 +0000 |
---|---|---|
committer | Stanley Hopcroft <stanleyhopcroft@users.sourceforge.net> | 2005-02-02 06:42:18 +0000 |
commit | 93c1c1d84517f1d11a91636c4e045c9f2e8e279a (patch) | |
tree | 008caf75b7937592a3c12642f561a4f71808c080 | |
parent | b0eda8844333f509d5543fdec70415b0e26a1c86 (diff) | |
download | monitoring-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
-rw-r--r-- | plugins/check_ide_smart.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/plugins/check_ide_smart.c b/plugins/check_ide_smart.c index bf123556..41724839 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; |