]> diplodocus.org Git - nmh/blobdiff - sbr/read_switch_multiword.c
Fixed inc(1) and %(me) to not obey Local-Mailbox profile component.
[nmh] / sbr / read_switch_multiword.c
index af44432cf8474778d9f021652c22bc10f426b247..9c1236739487169d3605ee42b98c8e349d41b278 100644 (file)
@@ -6,6 +6,11 @@
  */
 
 #include "h/mh.h"
  */
 
 #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 <setjmp.h>
 
 #include "h/signals.h"
 #include <setjmp.h>
 
@@ -37,7 +42,7 @@ read_switch_multiword (const char *prompt, const struct swit *ansp)
        cp = ansbuf;
        while ((i = getchar ()) != '\n') {
            if (i == EOF) {
        cp = ansbuf;
        while ((i = getchar ()) != '\n') {
            if (i == EOF) {
-               /*
+               /*
                 * If we get an EOF, return
                 */
                if (feof(stdin))
                 * If we get an EOF, return
                 */
                if (feof(stdin))
@@ -51,11 +56,11 @@ read_switch_multiword (const char *prompt, const struct swit *ansp)
 
                if (ferror(stdin)) {
                    if (errno == EINTR) {
 
                if (ferror(stdin)) {
                    if (errno == EINTR) {
-                       clearerr(stdin);
+                       clearerr(stdin);
                        continue;
                    }
                    fprintf(stderr, "\nError %s during read\n",
                        continue;
                    }
                    fprintf(stderr, "\nError %s during read\n",
-                           strerror(errno));
+                           strerror(errno));
                    siglongjmp (sigenv, 1);
                }
 
                    siglongjmp (sigenv, 1);
                }