]> 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 d13ae7a1df1432f83e4186c5f87638ca68d4e515..9c1236739487169d3605ee42b98c8e349d41b278 100644 (file)
@@ -6,6 +6,8 @@
  */
 
 #include "h/mh.h"
+#include "read_switch_multiword.h"
+#include "smatch.h"
 #include "brkstring.h"
 #include "ambigsw.h"
 #include "print_sw.h"
@@ -40,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))
@@ -54,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);
                }