summaryrefslogtreecommitdiffstats
path: root/plugins/t
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/t')
0 files changed, 0 insertions, 0 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;