Made feeding a switch instead of elsif chain
This commit is contained in:
parent
23aced5c7c
commit
725105b4a2
3 changed files with 48 additions and 36 deletions
2
misc.c
2
misc.c
|
@ -402,7 +402,7 @@ bool yes(const char* question, const char* yes_response, const char* no_response
|
|||
for (;;) {
|
||||
speak(question);
|
||||
|
||||
char* reply = get_input();
|
||||
char* reply = get_input();
|
||||
if (reply == NULL) {
|
||||
// LCOV_EXCL_START
|
||||
// Should be unreachable. Reply should never be NULL
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue