diff --git a/cpu/native/startup.c b/cpu/native/startup.c index 281f2db4ae..c5091a3e0f 100644 --- a/cpu/native/startup.c +++ b/cpu/native/startup.c @@ -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