]> diplodocus.org Git - nmh/blobdiff - uip/mhmisc.c
Remove trailing spaces from lines in man pages.
[nmh] / uip / mhmisc.c
index 8b1f0d00536ae0f5128c118629c7600281ca938b..0f466c42273904795a54eae0b05181dae18a7817 100644 (file)
@@ -122,8 +122,7 @@ is_inline(CT ct)
 
     if (! ct->c_dispo_type || strcasecmp(ct->c_dispo_type, "inline") == 0)
        return 1;
-    else
-       return 0;
+    return 0;
 }
 
 int
@@ -146,7 +145,7 @@ losing_directory:
            }
 
            ep = concat ("Create directory \"", file, "\"? ", NULL);
-           answer = getanswer (ep);
+           answer = read_yes_or_no_if_tty (ep);
            free (ep);
 
            if (!answer)
@@ -261,7 +260,7 @@ flush_errors (void)
 {
     if (errs) {
        fflush (stdout);
-       fprintf (stderr, "%s", errs);
+       fputs(errs, stderr);
        free (errs);
        errs = NULL;
     }