Made feeding a switch instead of elsif chain

This commit is contained in:
NHOrus 2017-07-05 19:55:52 +03:00 committed by Eric S. Raymond
parent 23aced5c7c
commit 725105b4a2
3 changed files with 48 additions and 36 deletions

2
misc.c
View file

@ -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