From: markus schnalke Date: Tue, 1 Nov 2011 08:10:19 +0000 (+0100) Subject: Removed outc(), which only called putchar(), while having the same signature. X-Git-Tag: mmh-thesis-end~486 X-Git-Url: http://git.marmaro.de/?p=mmh;a=commitdiff_plain;h=a0b72ae951177e0262dbe9266582edbd83c9684e Removed outc(), which only called putchar(), while having the same signature. I substituted all outc() calls with calls to putchar(). --- diff --git a/uip/termsbr.c b/uip/termsbr.c index bb8a607..3c45eb2 100644 --- a/uip/termsbr.c +++ b/uip/termsbr.c @@ -175,20 +175,13 @@ sc_length(void) } -static int -outc(int c) -{ - return putchar(c); -} - - void clear_screen(void) { read_termcap(); if (CL && speedcode) - tputs(CL, LI, outc); + tputs(CL, LI, putchar); else { printf("\f"); if (speedcode) @@ -211,13 +204,13 @@ SOprintf(char *fmt, ...) if (!(SO && SE)) return NOTOK; - tputs(SO, 1, outc); + tputs(SO, 1, putchar); va_start(ap, fmt); vprintf(fmt, ap); va_end(ap); - tputs(SE, 1, outc); + tputs(SE, 1, putchar); return OK; }