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");
Marek Lindner wrote:
Reported-by: Linus Lüssing linus.luessing@web.de Signed-off-by: Marek Lindner lindner_marek@yahoo.de
Acked-by: Sven Eckelmann sven@narfation.org
Applied in eee3fc6,
thanks Simon
On Wed, Apr 13, 2011 at 05:27:00PM +0200, Marek Lindner wrote:
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"); -- 1.7.2.3
b.a.t.m.a.n@lists.open-mesh.org