Removed outc(), which only called putchar(), while having the same signature.
authormarkus schnalke <meillo@marmaro.de>
Tue, 1 Nov 2011 08:10:19 +0000 (09:10 +0100)
committermarkus schnalke <meillo@marmaro.de>
Tue, 1 Nov 2011 08:10:19 +0000 (09:10 +0100)
I substituted all outc() calls with calls to putchar().

uip/termsbr.c

index bb8a607..3c45eb2 100644 (file)
@@ -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;
 }