Reported-by: Linus Lüssing linus.luessing@web.de Signed-off-by: Marek Lindner lindner_marek@yahoo.de --- sys.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/sys.c b/sys.c index 729f898..3511b40 100644 --- a/sys.c +++ b/sys.c @@ -420,10 +420,10 @@ int handle_gw_setting(char *mesh_iface, int argc, char **argv) case GW_MODE_SERVER: res = write_file(path_buff, SYS_GW_BW, argv[2], NULL); break; - default: - goto out; }
+ goto out; + opt_err: printf("Error - the supplied argument is invalid: %s\n", argv[1]); printf("The following values are allowed:\n");