X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/012d05c2b62332eb400d66b806e48216d39358c6..95e0df2af:/uip/mhmisc.c?ds=sidebyside diff --git a/uip/mhmisc.c b/uip/mhmisc.c index 8b1f0d00..0f466c42 100644 --- a/uip/mhmisc.c +++ b/uip/mhmisc.c @@ -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; }