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 /plugins | |
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
Diffstat (limited to 'plugins')
-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[]) 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; |