Skip to content
Snippets Groups Projects
Commit 9f3abcd3 authored by Ludwig Knüpfer's avatar Ludwig Knüpfer
Browse files

cpu/native: add missing breaks in option parser

parent c0b9b0fb
No related branches found
No related tags found
No related merge requests found
...@@ -253,8 +253,10 @@ __attribute__((constructor)) static void startup(int argc, char **argv) ...@@ -253,8 +253,10 @@ __attribute__((constructor)) static void startup(int argc, char **argv)
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;
case 'i': case 'i':
_native_id = atol(optarg); _native_id = atol(optarg);
break; break;
...@@ -287,6 +289,7 @@ __attribute__((constructor)) static void startup(int argc, char **argv) ...@@ -287,6 +289,7 @@ __attribute__((constructor)) static void startup(int argc, char **argv)
break; break;
default: default:
usage_exit(EXIT_FAILURE); usage_exit(EXIT_FAILURE);
break;
} }
} }
#ifdef MODULE_NETDEV2_TAP #ifdef MODULE_NETDEV2_TAP
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment