From: Ralph Corderoy Date: Fri, 28 Oct 2016 22:10:55 +0000 (+0100) Subject: Replace v?fprintf(stdout, ...) with v?printf(...). X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/0298e050ec1f14cd590771612ad5a88d0bc9e9de?ds=inline Replace v?fprintf(stdout, ...) with v?printf(...). --- diff --git a/uip/slocal.c b/uip/slocal.c index 70c16df1..a282eaf0 100644 --- a/uip/slocal.c +++ b/uip/slocal.c @@ -1337,7 +1337,7 @@ verbose_printf (char *fmt, ...) va_list ap; va_start(ap, fmt); - vfprintf (stdout, fmt, ap); + vprintf(fmt, ap); va_end(ap); fflush (stdout); /* now flush output */ @@ -1357,19 +1357,19 @@ adorn (char *what, char *fmt, ...) char *s; eindex = errno; /* save the errno */ - fprintf (stdout, ", "); + printf(", "); va_start(ap, fmt); - vfprintf (stdout, fmt, ap); + vprintf(fmt, ap); va_end(ap); if (what) { if (*what) - fprintf (stdout, " %s: ", what); + printf(" %s: ", what); if ((s = strerror (eindex))) - fprintf (stdout, "%s", s); + printf("%s", s); else - fprintf (stdout, "Error %d", eindex); + printf("Error %d", eindex); } putchar('\n');