]> diplodocus.org Git - nmh/blobdiff - sbr/read_switch.c
mhbuildsbr.c: Flip logic, moving goto to then-block; no need for else.
[nmh] / sbr / read_switch.c
index 8553001aba64a72d2d53c56745b39cd9fa4bda0b..8ca0be334dec1036b5233798e28f855c19a275a3 100644 (file)
@@ -1,6 +1,4 @@
-
-/*
- * read_switch.c -- prompt the user for an answer from the list
+/* read_switch.c -- prompt the user for an answer from the list
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -19,7 +17,7 @@ read_switch (const char *prompt, const struct swit *ansp)
     char ansbuf[BUFSIZ];
 
     for (;;) {
-       printf ("%s", prompt);
+       fputs(prompt, stdout);
        fflush (stdout);
        cp = ansbuf;
        while ((i = getchar ()) != '\n') {