summaryrefslogtreecommitdiffstats
path: root/usr.bin/tput/tput.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1995-08-05 21:33:11 +0000
committerache <ache@FreeBSD.org>1995-08-05 21:33:11 +0000
commitb5d2d54dc4e0811ebe52d9194c55b71c321d4ce3 (patch)
treeec42579d01bcc58c976edb0679e06fca797191a7 /usr.bin/tput/tput.c
parent94298d4284aac19534557638c951271810e29786 (diff)
downloadFreeBSD-src-b5d2d54dc4e0811ebe52d9194c55b71c321d4ce3.zip
FreeBSD-src-b5d2d54dc4e0811ebe52d9194c55b71c321d4ce3.tar.gz
Remove _set_ospeed, done in tgetent now.
Diffstat (limited to 'usr.bin/tput/tput.c')
-rw-r--r--usr.bin/tput/tput.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/usr.bin/tput/tput.c b/usr.bin/tput/tput.c
index f46d384..c45be50 100644
--- a/usr.bin/tput/tput.c
+++ b/usr.bin/tput/tput.c
@@ -53,7 +53,6 @@ static char sccsid[] = "@(#)tput.c 8.2 (Berkeley) 3/19/94";
#define outc putchar
static void prlongname __P((char *));
-static void setospeed __P((void));
static void usage __P((void));
static char **process __P((char *, char *, char **));
@@ -84,7 +83,6 @@ main(argc, argv)
errx(2, "no terminal type specified and no TERM environmental variable.");
if (tgetent(tbuf, term) != 1)
err(2, "tgetent failure");
- setospeed();
for (exitval = 0; (p = *argv) != NULL; ++argv) {
switch (*p) {
case 'c':
@@ -203,17 +201,6 @@ process(cap, str, argv)
}
static void
-setospeed()
-{
- struct termios t;
-
- if (tcgetattr(STDOUT_FILENO, &t) != -1)
- ospeed = 0;
- else
- _set_ospeed(cfgetospeed(&t));
-}
-
-static void
usage()
{
(void)fprintf(stderr, "usage: tput [-T term] attribute ...\n");
OpenPOWER on IntegriCloud