Fixed warnings about prototype mismatch by eliminating outc routine
and calling putchar directly.
This commit is contained in:
parent
c0a88f5efa
commit
ffaf90b1ec
@ -49,9 +49,10 @@ static char sccsid[] = "@(#)tput.c 8.2 (Berkeley) 3/19/94";
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#define outc putchar
|
||||
|
||||
static void prlongname __P((char *));
|
||||
static void setospeed __P((void));
|
||||
static void outc __P((int));
|
||||
static void usage __P((void));
|
||||
static char **process __P((char *, char *, char **));
|
||||
|
||||
@ -211,13 +212,6 @@ setospeed()
|
||||
ospeed = cfgetospeed(&t);
|
||||
}
|
||||
|
||||
static void
|
||||
outc(c)
|
||||
int c;
|
||||
{
|
||||
(void)putchar(c);
|
||||
}
|
||||
|
||||
static void
|
||||
usage()
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user