X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/b3d4a4452c332fc3550db3fbdf9e02027b41e985..ddf3a8574f657dcb8c53fc5908e7bebbde1994b5:/sbr/read_switch_multiword.c?ds=sidebyside diff --git a/sbr/read_switch_multiword.c b/sbr/read_switch_multiword.c index d66bd254..9c123673 100644 --- a/sbr/read_switch_multiword.c +++ b/sbr/read_switch_multiword.c @@ -6,6 +6,10 @@ */ #include "h/mh.h" +#include "read_switch_multiword.h" +#include "smatch.h" +#include "brkstring.h" +#include "ambigsw.h" #include "print_sw.h" #include "h/signals.h" #include @@ -38,7 +42,7 @@ read_switch_multiword (const char *prompt, const struct swit *ansp) cp = ansbuf; while ((i = getchar ()) != '\n') { if (i == EOF) { - /* + /* * If we get an EOF, return */ if (feof(stdin)) @@ -52,11 +56,11 @@ read_switch_multiword (const char *prompt, const struct swit *ansp) if (ferror(stdin)) { if (errno == EINTR) { - clearerr(stdin); + clearerr(stdin); continue; } fprintf(stderr, "\nError %s during read\n", - strerror(errno)); + strerror(errno)); siglongjmp (sigenv, 1); }