From 859627c416548f48b2afd8f26642e178102d85ba Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Sun, 3 Mar 2013 17:37:32 +0100 Subject: [PATCH] edit: Make uninmplemented edit n fail instead of doing nothing Doing nothing is in the way. Signed-off-by: Markus Armbruster --- src/lib/commands/edit.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lib/commands/edit.c b/src/lib/commands/edit.c index 309fc391c..9e282e60a 100644 --- a/src/lib/commands/edit.c +++ b/src/lib/commands/edit.c @@ -114,7 +114,7 @@ edit(void) break; case 'n': pr("Not implemented yet.\n"); - break; + return RET_FAIL; default: pr("huh?\n"); return RET_SYN; @@ -136,6 +136,8 @@ edit(void) case 'u': print_land(&item.land); break; + default: + CANT_REACH(); } } for (;;) { @@ -191,6 +193,8 @@ edit(void) if (!putplane(item.plane.pln_uid, &item.plane)) return RET_FAIL; break; + default: + CANT_REACH(); } } } -- 2.43.0