mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-20 00:33:57 +00:00
Fixed warnings about prototype mismatch by eliminating outc routine
and calling putchar directly.
This commit is contained in:
parent
c0a88f5efa
commit
ffaf90b1ec
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=3031
|
@ -49,9 +49,10 @@ static char sccsid[] = "@(#)tput.c 8.2 (Berkeley) 3/19/94";
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
|
#define outc putchar
|
||||||
|
|
||||||
static void prlongname __P((char *));
|
static void prlongname __P((char *));
|
||||||
static void setospeed __P((void));
|
static void setospeed __P((void));
|
||||||
static void outc __P((int));
|
|
||||||
static void usage __P((void));
|
static void usage __P((void));
|
||||||
static char **process __P((char *, char *, char **));
|
static char **process __P((char *, char *, char **));
|
||||||
|
|
||||||
|
@ -211,13 +212,6 @@ setospeed()
|
||||||
ospeed = cfgetospeed(&t);
|
ospeed = cfgetospeed(&t);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
outc(c)
|
|
||||||
int c;
|
|
||||||
{
|
|
||||||
(void)putchar(c);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
usage()
|
usage()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue