edit: Make uninmplemented edit n fail instead of doing nothing
Doing nothing is in the way. Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
parent
a48b24ff33
commit
859627c416
1 changed files with 5 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue