mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Remove _set_ospeed, done in tgetent now.
This commit is contained in:
parent
958c15a053
commit
cc3c7e3860
2 changed files with 0 additions and 14 deletions
|
|
@ -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':
|
||||
|
|
@ -202,17 +200,6 @@ process(cap, str, argv)
|
|||
return (argv);
|
||||
}
|
||||
|
||||
static void
|
||||
setospeed()
|
||||
{
|
||||
struct termios t;
|
||||
|
||||
if (tcgetattr(STDOUT_FILENO, &t) != -1)
|
||||
ospeed = 0;
|
||||
else
|
||||
_set_ospeed(cfgetospeed(&t));
|
||||
}
|
||||
|
||||
static void
|
||||
usage()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -81,7 +81,6 @@ main(argc, argv)
|
|||
|
||||
oldmode = mode;
|
||||
Ospeed = cfgetospeed(&mode);
|
||||
_set_ospeed(Ospeed);
|
||||
|
||||
if (p = strrchr(*argv, '/'))
|
||||
++p;
|
||||
|
|
|
|||
Loading…
Reference in a new issue