summaryrefslogtreecommitdiffstats
path: root/usr.bin/tput/tput.c
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1994-09-23 09:59:11 +0000
committerdg <dg@FreeBSD.org>1994-09-23 09:59:11 +0000
commitf9718d83a6d42e5860b0dd541b7bad9491eec9c8 (patch)
tree57b5282de1c749a11db158c8de71d04b840af39c /usr.bin/tput/tput.c
parentfe8ccfa46c14ccd142fa40e2d593dec875103ccc (diff)
downloadFreeBSD-src-f9718d83a6d42e5860b0dd541b7bad9491eec9c8.zip
FreeBSD-src-f9718d83a6d42e5860b0dd541b7bad9491eec9c8.tar.gz
Fixed warnings about prototype mismatch by eliminating outc routine
and calling putchar directly.
Diffstat (limited to 'usr.bin/tput/tput.c')
-rw-r--r--usr.bin/tput/tput.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/usr.bin/tput/tput.c b/usr.bin/tput/tput.c
index 8da0be7..cfc5be6 100644
--- a/usr.bin/tput/tput.c
+++ b/usr.bin/tput/tput.c
@@ -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 **));
@@ -212,13 +213,6 @@ setospeed()
}
static void
-outc(c)
- int c;
-{
- (void)putchar(c);
-}
-
-static void
usage()
{
(void)fprintf(stderr, "usage: tput [-T term] attribute ...\n");
OpenPOWER on IntegriCloud