X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/177f020f122827214159c46dcfe7ded1e3c8d1c3..d601805e1d9c40d88107eb4b79c6cd592d660eb2:/sbr/read_switch_multiword.c diff --git a/sbr/read_switch_multiword.c b/sbr/read_switch_multiword.c index 3521c5b5..67c5f33e 100644 --- a/sbr/read_switch_multiword.c +++ b/sbr/read_switch_multiword.c @@ -50,7 +50,7 @@ read_switch_multiword (const char *prompt, const struct swit *ansp) * then just return. */ - else if (ferror(stdin)) { + if (ferror(stdin)) { if (errno == EINTR) { clearerr(stdin); continue; @@ -58,14 +58,11 @@ read_switch_multiword (const char *prompt, const struct swit *ansp) fprintf(stderr, "\nError %s during read\n", strerror(errno)); siglongjmp (sigenv, 1); - } else { - /* - * Just for completeness's sake ... - */ - - fprintf(stderr, "\nUnknown problem in getchar()\n"); - siglongjmp (sigenv, 1); } + + /* Just for completeness's sake... */ + fprintf(stderr, "\nUnknown problem in getchar()\n"); + siglongjmp(sigenv, 1); } if (cp < &ansbuf[sizeof ansbuf - 1]) *cp++ = i; @@ -97,8 +94,5 @@ intrser (int i) { NMH_UNUSED (i); - /* - * should this be siglongjmp? - */ siglongjmp (sigenv, 1); }