Merge pull request #7647 from LudwigKnuepfer/pr/native-startup-switchcase
cpu/native: add missing breaks in option parser
This commit is contained in:
commit
2097f6810f
@ -303,6 +303,7 @@ __attribute__((constructor)) static void startup(int argc, char **argv, char **e
|
|||||||
while ((c = getopt_long(argc, argv, short_opts, long_opts, &opt_idx)) >= 0) {
|
while ((c = getopt_long(argc, argv, short_opts, long_opts, &opt_idx)) >= 0) {
|
||||||
switch (c) {
|
switch (c) {
|
||||||
case 0:
|
case 0:
|
||||||
|
/* fall through to 'h' */
|
||||||
case 'h':
|
case 'h':
|
||||||
usage_exit(EXIT_SUCCESS);
|
usage_exit(EXIT_SUCCESS);
|
||||||
break;
|
break;
|
||||||
@ -362,6 +363,7 @@ __attribute__((constructor)) static void startup(int argc, char **argv, char **e
|
|||||||
#endif
|
#endif
|
||||||
default:
|
default:
|
||||||
usage_exit(EXIT_FAILURE);
|
usage_exit(EXIT_FAILURE);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#ifdef MODULE_NETDEV_TAP
|
#ifdef MODULE_NETDEV_TAP
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user