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;
|
break;
|
||||||
case 'n':
|
case 'n':
|
||||||
pr("Not implemented yet.\n");
|
pr("Not implemented yet.\n");
|
||||||
break;
|
return RET_FAIL;
|
||||||
default:
|
default:
|
||||||
pr("huh?\n");
|
pr("huh?\n");
|
||||||
return RET_SYN;
|
return RET_SYN;
|
||||||
|
@ -136,6 +136,8 @@ edit(void)
|
||||||
case 'u':
|
case 'u':
|
||||||
print_land(&item.land);
|
print_land(&item.land);
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
CANT_REACH();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (;;) {
|
for (;;) {
|
||||||
|
@ -191,6 +193,8 @@ edit(void)
|
||||||
if (!putplane(item.plane.pln_uid, &item.plane))
|
if (!putplane(item.plane.pln_uid, &item.plane))
|
||||||
return RET_FAIL;
|
return RET_FAIL;
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
CANT_REACH();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue