From 9f3abcd372d45e626dcd7178da4af305e0f233c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludwig=20Kn=C3=BCpfer?= Date: Tue, 26 Sep 2017 09:41:21 +0200 Subject: [PATCH] cpu/native: add missing breaks in option parser --- cpu/native/startup.c | 3 +++ 1 file changed, 3 insertions(+) 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