summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b0eda88)
raw | patch | inline | side by side (parent: b0eda88)
author | Stanley Hopcroft <stanleyhopcroft@users.sourceforge.net> | |
Wed, 2 Feb 2005 06:42:18 +0000 (06:42 +0000) | ||
committer | Stanley Hopcroft <stanleyhopcroft@users.sourceforge.net> | |
Wed, 2 Feb 2005 06:42:18 +0000 (06:42 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1127 f882894a-f735-0410-b71e-b25c423dba1c
plugins/check_ide_smart.c | patch | blob | history |
index bf123556d54159e733137c9ee1af21204aa38e8e..4172483905899e4bd376a2af846576fd46adce38 100644 (file)
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;