1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-26 23:11:19 +01:00

cpu/native: add missing breaks in option parser

This commit is contained in:
Ludwig Knüpfer 2017-09-26 09:41:21 +02:00
parent c0b9b0fb56
commit 9f3abcd372

View File

@ -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) {
switch (c) {
case 0:
/* fall through to 'h' */
case 'h':
usage_exit(EXIT_SUCCESS);
break;
case 'i':
_native_id = atol(optarg);
break;
@ -287,6 +289,7 @@ __attribute__((constructor)) static void startup(int argc, char **argv)
break;
default:
usage_exit(EXIT_FAILURE);
break;
}
}
#ifdef MODULE_NETDEV2_TAP